summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-07-28 21:13:02 -0700
committerBrian Anderson <banderson@mozilla.com>2015-07-29 10:49:13 -0700
commite6b2f0cbaf4463f18936621b6e9fb44ecfb9f35f (patch)
tree358d8055c18377c8714f77206c70639be721acef /src/test/codegen/stack-alloc-string-slice.cc
parent4fcb19dda999f8e1f97b98e170e87e47425e7dae (diff)
downloadrust-e6b2f0cbaf4463f18936621b6e9fb44ecfb9f35f.tar.gz
rust-e6b2f0cbaf4463f18936621b6e9fb44ecfb9f35f.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/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions