about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-30 01:43:54 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-30 01:43:54 +0530
commitb904b452c607e84c1fb7e4b1a5f9ed6cb4e043e6 (patch)
tree57a8be42abc195e1508f7b5abb2e454bab4f97a9 /src/rustllvm/RustWrapper.cpp
parent35d95515f3de27c0e1a7d67893fcad8d0ad6fac9 (diff)
parent43b2c4781e5d6e25dedfc480218ceda92d9dffad (diff)
downloadrust-b904b452c607e84c1fb7e4b1a5f9ed6cb4e043e6.tar.gz
rust-b904b452c607e84c1fb7e4b1a5f9ed6cb4e043e6.zip
Rollup merge of #27373 - alexcrichton:fix-wait-timeout-ms, r=brson
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