Skip to content

Commit eaf7fd2

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. Signed-off-by: Connor Tsui <[email protected]>
1 parent 5b6ceb5 commit eaf7fd2

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,6 +29,8 @@ 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")]
@@ -38,5 +40,6 @@ pub use self::rwlock::{MappedRwLockReadGuard, MappedRwLockWriteGuard};
3840
#[unstable(feature = "nonpoison_rwlock", issue = "134645")]
3941
pub use self::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
4042

43+
mod condvar;
4144
mod mutex;
4245
mod rwlock;

0 commit comments

Comments
 (0)