rust/src/libstd/sys
Steven Fackler 08f6380a9f Rewrite Condvar::wait_timeout and make it public
**The implementation is a direct adaptation of libcxx's
condition_variable implementation.**

pthread_cond_timedwait uses the non-monotonic system clock. It's
possible to change the clock to a monotonic via pthread_cond_attr, but
this is incompatible with static initialization. To deal with this, we
calculate the timeout using the system clock, and maintain a separate
record of the start and end times with a monotonic clock to be used for
calculation of the return value.
2015-01-16 09:17:37 -08:00
..
common Rename AtomicInt and AtomicUint 2015-01-11 11:47:44 -08:00
unix Rewrite Condvar::wait_timeout and make it public 2015-01-16 09:17:37 -08:00
windows Rewrite Condvar::wait_timeout and make it public 2015-01-16 09:17:37 -08:00