]> git.lizzy.rs Git - rust.git/blob - src/libstd/sync/mod.rs
libstd: set baseline stability levels.
[rust.git] / src / libstd / sync / mod.rs
1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Useful synchronization primitives
12 //!
13 //! This modules contains useful safe and unsafe synchronization primitives.
14 //! Most of the primitives in this module do not provide any sort of locking
15 //! and/or blocking at all, but rather provide the necessary tools to build
16 //! other types of concurrent primitives.
17
18 #![experimental]
19
20 pub use core_sync::{atomics, deque, mpmc_bounded_queue, mpsc_queue, spsc_queue};
21 pub use core_sync::{Arc, Weak, Mutex, MutexGuard, Condvar, Barrier};
22 pub use core_sync::{RWLock, RWLockReadGuard, RWLockWriteGuard};
23 pub use core_sync::{Semaphore, SemaphoreGuard};
24 pub use core_sync::one::{Once, ONCE_INIT};
25
26 pub use self::future::Future;
27 pub use self::task_pool::TaskPool;
28
29 mod future;
30 mod task_pool;