(index<- ) ./libsync/lib.rs
git branch: * master 5200215 auto merge of #14035 : alexcrichton/rust/experimental, r=huonw
modified: Wed Apr 9 17:27:03 2014
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.11-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 #![deny(deprecated_owned_vector)]
24
25 #![deny(missing_doc)]
26
27 #[cfg(test)]
28 #[phase(syntax, link)] extern crate log;
29
30 pub use comm::{DuplexStream, duplex};
31 pub use task_pool::TaskPool;
32 pub use future::Future;
33 pub use arc::{Arc, Weak};
34 pub use lock::{Mutex, MutexGuard, Condvar, Barrier,
35 RWLock, RWLockReadGuard, RWLockWriteGuard};
36
37 // The mutex/rwlock in this module are not meant for reexport
38 pub use raw::{Semaphore, SemaphoreGuard};
39
40 mod arc;
41 mod comm;
42 mod future;
43 mod lock;
44 mod mpsc_intrusive;
45 mod task_pool;
46
47 pub mod raw;
48 pub mod mutex;
49 pub mod one;