[Bug libstdc++/78237] std::timed_mutex::try_lock_for/until affected by system realtime clock
mac at mcrowe dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 21 20:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78237
Mike Crowe <mac at mcrowe dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mac at mcrowe dot com
--- Comment #1 from Mike Crowe <mac at mcrowe dot com> ---
The fix for this is similar to the fix for 41861 if the new
pthread_mutex_clockwait function is used from glibc 2.30.
std::shared_timed_mutex is afflicted similarly and can be fixed with
pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock.
I'm working on fixes for both, but don't appear to have the required Bugzilla
privileges to assign this bug to me. :(
More information about the Gcc-bugs
mailing list