diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-07-28 21:13:02 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-07-29 10:24:40 -0700 |
| commit | 43b2c4781e5d6e25dedfc480218ceda92d9dffad (patch) | |
| tree | c333c753befe153331acb5443fcf8a38bd61ab0c /src/rustllvm/RustWrapper.cpp | |
| parent | 68fc2d98d547a7045e918b03117c740179addb77 (diff) | |
| download | rust-43b2c4781e5d6e25dedfc480218ceda92d9dffad.tar.gz rust-43b2c4781e5d6e25dedfc480218ceda92d9dffad.zip | |
std: Fix sub-second Condvar::wait_timeout_ms
The API we're calling requires us to pass an absolute point in time as an argument (`pthread_cond_timedwait`) so we call `gettimeofday` ahead of time to then add the specified duration to. Unfortuantely the current "add the duration" logic forgot to take into account the current time's sub-second precision (e.g. the `tv_usec` field was ignored), causing sub-second duration waits to return spuriously.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
