re PR libstdc++/54562 (mutex and condition variable timers)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Mon, 11 Nov 2013 13:33:48 +0000 (13:33 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 11 Nov 2013 13:33:48 +0000 (13:33 +0000)
commit6162239973a3a10ae49c3cea0c1008d4f9c69b5b
tree2247476aff5dbdb9416b7e86e63da782580b594a
parent1a80085d42aaedfbf7a2c684bd5793bb4dc72500
re PR libstdc++/54562 (mutex and condition variable timers)

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.

From-SVN: r204672
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/mutex