Skip to content

Commit d99ab6d

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 d99ab6d

File tree

3 files changed

+844
-0
lines changed

3 files changed

+844
-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)