]> git.lizzy.rs Git - rust.git/commit
rollup merge of #23949: aturon/stab-timeout
authorAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 20:56:20 +0000 (13:56 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 1 Apr 2015 20:56:20 +0000 (13:56 -0700)
commit655634e6ab00707ef98034dcfb32000cbfa7a01c
tree7222d7fe7e9a1be7f04eabaa557e21bb370c2978
parentbb252a8878882013aa5d5a3bb2af93d6cb51a85f
parent371277fb0d210152eb8c79e30bd7f7749c5af63c
rollup merge of #23949: aturon/stab-timeout

This commit renames and stabilizes:

* `Condvar::wait_timeout_ms` (renamed from `wait_timeout`)
* `thread::park_timeout_ms` (renamed from `park_timeout`)
* `thread::sleep_ms` (renamed from `sleep`)

In each case, the timeout is taken as a `u32` number of milliseconds,
rather than a `Duration`.

These functions are likely to be deprecated once a stable form of
`Duration` is available, but there is little cost to having these named
variants around, and it's crucial functionality for 1.0.

[breaking-change]

r? @alexcrichton

cc @sfackler @carllerche
src/libstd/thread/mod.rs