Trait concurrency_traits::mutex::RawMutex[][src]

pub unsafe trait RawMutex: RawTryMutex {
    fn lock(&self);
}
Expand description

A raw mutex that hold no data but the lock itself.

Required methods

fn lock(&self)[src]

Locks the mutex, blocking.

Implementors

impl<CS> RawMutex for RawParkMutex<CS> where
    CS: ThreadParker + ThreadFunctions,
    CS::ThreadId: Eq + Clone
[src]

fn lock(&self)[src]

impl<CS> RawMutex for RawSpinLock<CS> where
    CS: ThreadFunctions
[src]

fn lock(&self)[src]

impl<M, Q> RawMutex for RawCustomAsyncMutex<M, Q> where
    M: 'static + RawMutex + Send + Sync,
    Q: 'static + Queue<Item = RawCustomAsyncMutexMessage> + Send + Sync
[src]

fn lock(&self)[src]