]> git.lizzy.rs Git - rust.git/blob - src/libsync/lib.rs
Register new snapshots
[rust.git] / src / libsync / lib.rs
1 // Copyright 2012-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 /*!
12  * Concurrency-enabled mechanisms and primitives.
13  */
14
15 #[crate_id = "sync#0.10-pre"];
16 #[crate_type = "rlib"];
17 #[crate_type = "dylib"];
18 #[license = "MIT/ASL2"];
19 #[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
21       html_root_url = "http://static.rust-lang.org/doc/master")];
22 #[feature(phase)];
23 #[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
24
25 #[cfg(test)] #[phase(syntax, link)] extern crate log;
26
27 pub use arc::{Arc, MutexArc, RWArc, RWWriteMode, RWReadMode, ArcCondvar, CowArc};
28 pub use sync::{Mutex, RWLock, Condvar, Semaphore, RWLockWriteMode,
29                RWLockReadMode, Barrier, one, mutex};
30 pub use comm::{DuplexStream, SyncSender, SyncReceiver, rendezvous, duplex};
31 pub use task_pool::TaskPool;
32 pub use future::Future;
33
34 mod arc;
35 mod sync;
36 mod comm;
37 mod task_pool;
38 mod future;