diff options
| author | Ben Striegel <ben.striegel@gmail.com> | 2015-11-04 17:11:01 -0800 |
|---|---|---|
| committer | Ben Striegel <ben.striegel@gmail.com> | 2015-11-04 18:43:30 -0800 |
| commit | a2efa2aa291c938200da59b89b14214c8d2c70ba (patch) | |
| tree | 04466ab4806a7342bc0e869d81624024860e3068 /src/libstd/sync | |
| parent | effcd29652bbf16981d9cd0d8a578681b2ed55bb (diff) | |
| download | rust-a2efa2aa291c938200da59b89b14214c8d2c70ba.tar.gz rust-a2efa2aa291c938200da59b89b14214c8d2c70ba.zip | |
Deprecate `_ms` functions that predate the `Duration` API
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/condvar.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs index 1b32515e9f7..7a80a202dd9 100644 --- a/src/libstd/sync/condvar.rs +++ b/src/libstd/sync/condvar.rs @@ -167,6 +167,8 @@ impl Condvar { /// Like `wait`, the lock specified will be re-acquired when this function /// returns, regardless of whether the timeout elapsed or not. #[stable(feature = "rust1", since = "1.0.0")] + #[deprecated(since = "1.6.0", reason = "replaced by `std::sync::Condvar::wait_timeout`")] + #[allow(deprecated)] pub fn wait_timeout_ms<'a, T>(&self, guard: MutexGuard<'a, T>, ms: u32) -> LockResult<(MutexGuard<'a, T>, bool)> { unsafe { @@ -289,6 +291,7 @@ impl StaticCondvar { #[unstable(feature = "static_condvar", reason = "may be merged with Condvar in the future", issue = "27717")] + #[deprecated(since = "1.6.0", reason = "replaced by `std::sync::StaticCondvar::wait_timeout`")] pub fn wait_timeout_ms<'a, T>(&'static self, guard: MutexGuard<'a, T>, ms: u32) -> LockResult<(MutexGuard<'a, T>, bool)> { match self.wait_timeout(guard, Duration::from_millis(ms as u64)) { |
