https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106183
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ted_lion from comment #1) > The subprocedure of comparison > with old value and waiting for the notification should not be interrupted by > an operation on same atomic object. I'm not sure what you mean here, could you clarify please?