]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix for deadlock in std::counting_semaphore [PR100806]
authorThomas Rodgers <rodgert@appliantology.com>
Tue, 22 Jun 2021 17:59:07 +0000 (10:59 -0700)
committerThomas Rodgers <rodgert@appliantology.com>
Tue, 22 Jun 2021 18:06:07 +0000 (11:06 -0700)
commite02840c1a92abecd211ffaf05b28329bcb534583
tree437bc170e44e0ef5c38159167081b2c77ac468fb
parentea4e32181d7a36055b57421abd0ced4735654cf6
libstdc++: Fix for deadlock in std::counting_semaphore [PR100806]

libstdc++-v3/ChangeLog:
PR libstdc++/100806
* include/bits/semaphore_base.h (__atomic_semaphore::_M_release):
Force _M_release() to wake all waiting threads.
* testsuite/30_threads/semaphore/100806.cc: New test.
libstdc++-v3/include/bits/semaphore_base.h
libstdc++-v3/testsuite/30_threads/semaphore/100806.cc [new file with mode: 0644]