Skip to content

Commit

Permalink
added RwLock to lock module
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cjayross committed Nov 21, 2022
1 parent 86f0626 commit 33ddb3a
Show file tree
Hide file tree
Showing 3 changed files with 686 additions and 0 deletions.
9 changes: 9 additions & 0 deletions futures-util/src/lock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ mod bilock;
#[cfg(not(futures_no_atomic_cas))]
#[cfg(feature = "std")]
mod mutex;

#[cfg(not(futures_no_atomic_cas))]
#[cfg(feature = "std")]
mod rwlock;
#[cfg(not(futures_no_atomic_cas))]
#[cfg(feature = "std")]
pub use self::rwlock::{
RwLock, RwLockReadFuture, RwLockReadGuard, RwLockWriteFuture, RwLockWriteGuard,
};
Loading

0 comments on commit 33ddb3a

Please sign in to comment.