Skip to content

Commit eff0257

Browse files
committed
sync: Wire up all of the previous commits
This updates the exports and layout of the crate
1 parent 64a52de commit eff0257

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/libsync/lib.rs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,28 @@
2020
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2121
html_root_url = "http://static.rust-lang.org/doc/master")];
2222
#[feature(phase)];
23+
#[deny(missing_doc, deprecated_owned_vector)];
2324

24-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
25+
#[cfg(test)]
26+
#[phase(syntax, link)] extern crate log;
2527

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};
2928
pub use comm::{DuplexStream, SyncSender, SyncReceiver, rendezvous, duplex};
3029
pub use task_pool::TaskPool;
3130
pub use future::Future;
31+
pub use arc::{Arc, Weak};
32+
pub use lock::{Mutex, MutexGuard, Condvar, Barrier,
33+
RWLock, RWLockReadGuard, RWLockWriteGuard};
34+
35+
// The mutex/rwlock in this module are not meant for reexport
36+
pub use raw::{Semaphore, SemaphoreGuard};
3237

3338
mod arc;
34-
mod sync;
3539
mod comm;
36-
mod task_pool;
3740
mod future;
41+
mod lock;
42+
mod mpsc_intrusive;
43+
mod task_pool;
44+
45+
pub mod raw;
46+
pub mod mutex;
47+
pub mod one;

0 commit comments

Comments
 (0)