Re: [Live-devel] use of volatile in doEventLoop for interthread synchronization

2024-08-01 Thread Ross Finlayson
Yes, in a future version of the code, I’ll change the signature of “doEventLoop()” to make “watchVariable” a “std:atomic_char*” rather than a "char volatile*”. (As with the recent changes to “fTriggersAwaitingHandling”, this will be #ifdef’d for those who don’t have (or don’t want to use) the C

[Live-devel] use of volatile in doEventLoop for interthread synchronization

2024-08-01 Thread gback
Hi, the current Live555 uses `volatile` for interthread synchronization in doEventLoop. As per C++ specification, volatile cannot be used for this purpose and in fact introduces undefined behavior. (*) Although we can argue about what practical effect this has I believe that just followin