https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
Phosit <phosit at autistici dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phosit at autistici dot org --- Comment #4 from Phosit <phosit at autistici dot org> --- Since the condition variable is that trivial, the code is corect even without the mutex. Without the mutex the code becomes the a typical example what the release-aquire ordering guarantees. (The sequentially-consistent ordering is stronger than the release-aquire ordering)