Crate sync
Concurrency-enabled mechanisms and primitives.
Reexports
pub use raw::{Semaphore, SemaphoreGuard}; |
Modules
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. |
Structs
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 |
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 |
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 |
Functions
duplex | Creates a bidirectional stream. |