diff options
| author | Fenrir <[email protected]> | 2017-03-05 22:57:34 -0700 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-03-05 22:57:34 -0700 |
| commit | 5c02db6cb953433d3837faed1451b2f804dc81a9 (patch) | |
| tree | b21b480d42a630e9f85d9fb88b6d74f7efe827f1 /ctr-std/src/sync/mod.rs | |
| parent | Initial thread support (diff) | |
| download | ctru-rs-5c02db6cb953433d3837faed1451b2f804dc81a9.tar.xz ctru-rs-5c02db6cb953433d3837faed1451b2f804dc81a9.zip | |
Add the rest of std::sync
Diffstat (limited to 'ctr-std/src/sync/mod.rs')
| -rw-r--r-- | ctr-std/src/sync/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ctr-std/src/sync/mod.rs b/ctr-std/src/sync/mod.rs index 245aaab..289b47b 100644 --- a/ctr-std/src/sync/mod.rs +++ b/ctr-std/src/sync/mod.rs @@ -23,14 +23,22 @@ pub use alloc::arc::{Arc, Weak}; pub use core::sync::atomic; #[stable(feature = "rust1", since = "1.0.0")] +pub use self::barrier::{Barrier, BarrierWaitResult}; +#[stable(feature = "rust1", since = "1.0.0")] pub use self::condvar::{Condvar, WaitTimeoutResult}; #[stable(feature = "rust1", since = "1.0.0")] pub use self::mutex::{Mutex, MutexGuard}; #[stable(feature = "rust1", since = "1.0.0")] +pub use self::once::{Once, OnceState, ONCE_INIT}; +#[stable(feature = "rust1", since = "1.0.0")] pub use sys_common::poison::{PoisonError, TryLockError, TryLockResult, LockResult}; #[stable(feature = "rust1", since = "1.0.0")] pub use self::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard}; +pub mod mpsc; + +mod barrier; mod condvar; mod mutex; +mod once; mod rwlock; |