aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-12-10 11:44:29 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-12-10 14:05:46 +0000
commitffb632517fc446474baba10ee2ff13a218ec2c7b (patch)
tree20272c96a5d891dfd272cbd390c67b4bb4ba3f09 /libgcc
parentca1c7065e9de04ceb521a0b409071275c5690341 (diff)
downloadgcc-ffb632517fc446474baba10ee2ff13a218ec2c7b.zip
gcc-ffb632517fc446474baba10ee2ff13a218ec2c7b.tar.gz
gcc-ffb632517fc446474baba10ee2ff13a218ec2c7b.tar.bz2
libstdc++: Guard mutex and condvar with gthreads macro [PR103638]
A mutex and condition variable is used for timed waits on atomics if there is no "platform wait" (e.g. futex) supported. But the use of those types wasn't guarded by the _GLIBCXX_HAS_GTHREADS macro, causing errors for --disable-threads builds. This fix allows <atomic> to work on targets with futexes but no gthreads. libstdc++-v3/ChangeLog: PR libstdc++/103638 * include/bits/atomic_timed_wait.h: Check _GLIBCXX_HAS_GTHREADS before using std::mutex and std::__condvar.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions