asterinas/framework/aster-frame/src/sync/mod.rs

18 lines
617 B
Rust
Raw Normal View History

2022-09-01 06:25:26 +00:00
mod atomic_bits;
mod mutex;
2023-08-02 04:10:57 +00:00
// TODO: refactor this rcu implementation
// Comment out this module since it raises lint error
// mod rcu;
mod rwlock;
mod rwmutex;
2022-08-08 01:01:42 +00:00
mod spin;
mod wait;
2022-09-01 06:25:26 +00:00
pub use self::atomic_bits::AtomicBits;
pub use self::mutex::{Mutex, MutexGuard};
2023-08-02 04:10:57 +00:00
// pub use self::rcu::{pass_quiescent_state, OwnerPtr, Rcu, RcuReadGuard, RcuReclaimer};
pub use self::rwlock::{RwLock, RwLockReadGuard, RwLockUpgradeableGuard, RwLockWriteGuard};
pub use self::rwmutex::{RwMutex, RwMutexReadGuard, RwMutexUpgradeableGuard, RwMutexWriteGuard};
pub use self::spin::{SpinLock, SpinLockGuard};
pub use self::wait::WaitQueue;