1
Fork 0
rust/src/libstd/time
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
..
duration.rs Improvements to feature staging 2015-01-08 03:07:23 -08:00
mod.rs Rewrite Condvar::wait_timeout and make it public 2015-01-16 09:17:37 -08:00