diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-08-19 18:02:53 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-08-21 13:26:10 +0100 |
commit | d1dec304453fa4874d16daaa15e6f477435edda4 (patch) | |
tree | 74a09c88f36481ad54d221ab65949bfdaf7fed66 /libgo | |
parent | 3182e95eda4a1d612b910b3248c997c8acc7add3 (diff) | |
download | gcc-d1dec304453fa4874d16daaa15e6f477435edda4.zip gcc-d1dec304453fa4874d16daaa15e6f477435edda4.tar.gz gcc-d1dec304453fa4874d16daaa15e6f477435edda4.tar.bz2 |
libstdc++: Check _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK with #if [PR121496]
The change in r14-905-g3b7cb33033fbe6 to disable the use of
pthread_mutex_clocklock when TSan is active assumed that the
_GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK macro was always checked with #if
rather than #ifdef, which was not true.
This makes the checks use #if consistently.
libstdc++-v3/ChangeLog:
PR libstdc++/121496
* include/std/mutex (__timed_mutex_impl::_M_try_wait_until):
Change preprocessor condition to use #if instead of #ifdef.
(recursive_timed_mutex::_M_clocklock): Likewise.
* testsuite/30_threads/timed_mutex/121496.cc: New test.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions