mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 18:33:24 +00:00
Implement the RwLock
based on spinning
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b3a7899428
commit
9dbbe1f5c9
@ -1,11 +1,16 @@
|
||||
mod atomic_bits;
|
||||
mod mutex;
|
||||
mod rcu;
|
||||
mod rwlock;
|
||||
mod spin;
|
||||
mod wait;
|
||||
|
||||
pub use self::atomic_bits::AtomicBits;
|
||||
pub use self::mutex::{Mutex, MutexGuard};
|
||||
pub use self::rcu::{pass_quiescent_state, OwnerPtr, Rcu, RcuReadGuard, RcuReclaimer};
|
||||
pub use self::rwlock::{
|
||||
RwLock, RwLockReadGuard, RwLockReadIrqDisabledGuard, RwLockWriteGuard,
|
||||
RwLockWriteIrqDisabledGuard,
|
||||
};
|
||||
pub use self::spin::{SpinLock, SpinLockGuard, SpinLockIrqDisabledGuard};
|
||||
pub use self::wait::WaitQueue;
|
||||
|
Reference in New Issue
Block a user