about summary refs log tree commit diff
path: root/src/libstd/sys/windows/time.rs
AgeCommit message (Collapse)AuthorLines
2015-01-16Rewrite Condvar::wait_timeout and make it publicSteven Fackler-0/+50
**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.