]> git.lizzy.rs Git - rust.git/blob - src/libsync/lib.rs
auto merge of #13049 : alexcrichton/rust/io-fill, r=huonw
[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
24 #[cfg(test)] #[phase(syntax, link)] extern crate log;
25
26 pub use arc::{Arc, MutexArc, RWArc, RWWriteMode, RWReadMode, ArcCondvar, CowArc};
27 pub use sync::{Mutex, RWLock, Condvar, Semaphore, RWLockWriteMode,
28                RWLockReadMode, Barrier, one, mutex};
29 pub use comm::{DuplexStream, SyncSender, SyncReceiver, rendezvous, duplex};
30 pub use task_pool::TaskPool;
31 pub use future::Future;
32
33 mod arc;
34 mod sync;
35 mod comm;
36 mod task_pool;
37 mod future;