https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106772
--- Comment #15 from Mkkt Bkkt <valera.mironow at gmail dot com> --- > If you have an atomic counter and want to signal when it has been > incremented, you cannot tell from the previous value whether another thread > is waiting. I wrote it example. Do you talk about like semaphore usage? As I know in libstdc++ semaphore use bare wait without touching waiters_pool. Am I wrong?