From 5c02db6cb953433d3837faed1451b2f804dc81a9 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Sun, 5 Mar 2017 22:57:34 -0700 Subject: Add the rest of std::sync --- ctr-std/src/sync/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ctr-std/src/sync/mod.rs') 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 @@ -22,15 +22,23 @@ pub use alloc::arc::{Arc, Weak}; #[stable(feature = "rust1", since = "1.0.0")] 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; -- cgit v1.2.3