Skip to content

Commit ace22e8

Browse files
committed
added RwLock to lock module
fixed missing state variable for waiting readers fixed deadlocking problem with new WaiterSet type added ticketing system added tests renamed ticket to phase in RwLockReadFuture
1 parent 86f0626 commit ace22e8

File tree

3 files changed

+704
-0
lines changed

3 files changed

+704
-0
lines changed

futures-util/src/lock/mod.rs

+9
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ mod bilock;
2525
#[cfg(not(futures_no_atomic_cas))]
2626
#[cfg(feature = "std")]
2727
mod mutex;
28+
29+
#[cfg(not(futures_no_atomic_cas))]
30+
#[cfg(feature = "std")]
31+
mod rwlock;
32+
#[cfg(not(futures_no_atomic_cas))]
33+
#[cfg(feature = "std")]
34+
pub use self::rwlock::{
35+
RwLock, RwLockReadFuture, RwLockReadGuard, RwLockWriteFuture, RwLockWriteGuard,
36+
};

0 commit comments

Comments
 (0)