PR libstdc++/54562
commit4ca82f859dc0bfda63f5bcc16d0219ae25b5e351
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Nov 2013 13:33:48 +0000 (11 13:33 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Nov 2013 13:33:48 +0000 (11 13:33 +0000)
tree2247476aff5dbdb9416b7e86e63da782580b594a
parentf4f176bd920bf2c88036fecdc97ea2360de15e19
PR libstdc++/54562
* include/std/mutex (__timed_mutex_impl::__clock_t): Use
high_resolution_clock for absolute timeouts, because
pthread_mutex_timedlock uses CLOCK_REALTIME not CLOCK_MONOTONIC.
(__timed_mutex_impl::_M_try_lock_for): Use steady_clock for relative
timeouts as per [thread.req.timing].
(__timed_mutex_impl::_M_try_lock_until<Clock,Duration>): Convert to
__clock_t time point instead of using _M_try_lock_for.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204672 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/mutex