Files
Andrey Semashev 1dbc46710b Remove operations on volatile variables.
C++20 deprecates operations other than reads and writes  performed on
volatile variables. Compilers generate warnings about this.

In the Log class, touchCount was marked as volatile in attempt to emulate
atomics in C++03 (which was incorrect; atomicity was not guaranteed).
Replace it with std::atomic. Also change it to unsigned int to increase
chances of native support for atomic operations rather than emulation.

In testRandomThread, the volatile variables need not be marked as such
as the compiler is required to reload these variables across wait() calls
since a wait call unlocks and locks the mutex, which implies release and
acquire fences.
2025-11-08 03:30:09 +03:00
..
2024-12-03 17:24:10 -05:00
2017-11-10 17:19:54 +01:00
2024-10-21 17:27:29 +01:00
2025-01-15 16:02:28 -05:00