PR libstdc++/57641
commit2851d736ebf1e8cceebb9106cab69d2c3fdc7624
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2013 22:55:02 +0000 (18 22:55 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2013 22:55:02 +0000 (18 22:55 +0000)
treec491d5047a720ef9b19dbe186747c2ab31667949
parent3bc4161a6a4610c91897d637c64dfd50003455ba
PR libstdc++/57641
* include/std/mutex (timed_mutex, recursive_timed_mutex): Move common
functionality to new __timed_mutex_impl mixin. Overload try_lock_until
to handle conversion between different clocks. Replace constrained
__try_lock_for_impl overloads with conditional increment.
* include/std/shared_mutex (shared_mutex::_Mutex): Use the new mixin.
* testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200180 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/mutex
libstdc++-v3/include/std/shared_mutex
libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc [new file with mode: 0644]