Skip to content

Commit 97f16f7

Browse files
committed
add nonpoison::rwlock implementation
Adds the equivalent `nonpoison` types to the `poison::rwlock` module. These types and implementations are gated under the `nonpoison_rwlock` feature gate. Also blesses the ui tests that now have a name conflicts (because these types no longer have unique names). The full path distinguishes the different types.
1 parent 180f8e4 commit 97f16f7

File tree

5 files changed

+1094
-8
lines changed

5 files changed

+1094
-8
lines changed

library/std/src/sync/nonpoison.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,10 @@ impl fmt::Display for WouldBlock {
3333
pub use self::mutex::MappedMutexGuard;
3434
#[unstable(feature = "nonpoison_mutex", issue = "134645")]
3535
pub use self::mutex::{Mutex, MutexGuard};
36+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
37+
pub use self::rwlock::{MappedRwLockReadGuard, MappedRwLockWriteGuard};
38+
#[unstable(feature = "nonpoison_rwlock", issue = "134645")]
39+
pub use self::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
3640

3741
mod mutex;
42+
mod rwlock;

0 commit comments

Comments
 (0)