Skip to content

Commit 2244d54

Browse files
committed
add nonpoison::condvar implementation
Adds the equivalent `nonpoison` types to the `poison::condvar` module. These types and implementations are gated under the `nonpoison_condvar` feature gate.
1 parent 7278554 commit 2244d54

File tree

3 files changed

+524
-2
lines changed

3 files changed

+524
-2
lines changed

library/std/src/sync/nonpoison.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ impl fmt::Display for WouldBlock {
2929
}
3030
}
3131

32+
#[unstable(feature = "nonpoison_condvar", issue = "134645")]
33+
pub use self::condvar::{Condvar, WaitTimeoutResult};
3234
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
3335
pub use self::mutex::MappedMutexGuard;
3436
#[unstable(feature = "nonpoison_mutex", issue = "134645")]
3537
pub use self::mutex::{Mutex, MutexGuard};
3638

39+
mod condvar;
3740
mod mutex;

0 commit comments

Comments
 (0)