[src]

Crate sync

Concurrency-enabled mechanisms and primitives.

pub use raw::{Semaphore, SemaphoreGuard};
mutex

A proper mutex implementation regardless of the "flavor of task" which is acquiring the lock.

one

A "once initialization" primitive

raw

Raw concurrency primitives you know and love.

Arc

An atomically reference counted wrapper for shared state.

Barrier

A barrier enables multiple tasks to synchronize the beginning of some computation.

Condvar

A condition variable, a mechanism for unlock-and-descheduling and signaling, for use with the lock types.

DuplexStream

An extension of pipes::stream that allows both sending and receiving.

Future

A type encapsulating the result of a computation which may not be complete

Mutex

A wrapper type which provides synchronized access to the underlying data, of type T. A mutex always provides exclusive access, and concurrent requests will block while the mutex is already locked.

MutexGuard

An guard which is created by locking a mutex. Through this guard the underlying data can be accessed.

RWLock

A dual-mode reader-writer lock. The data can be accessed mutably or immutably, and immutably-accessing tasks may run concurrently.

RWLockReadGuard

A guard which is created by locking an rwlock in read mode. Through this guard the underlying data can be accessed.

RWLockWriteGuard

A guard which is created by locking an rwlock in write mode. Through this guard the underlying data can be accessed.

TaskPool
Weak

A weak pointer to an Arc.

duplex

Creates a bidirectional stream.