Trait concurrency_traits::RawTryMutex[][src]

pub trait RawTryMutex {
    fn try_lock(&self) -> bool;
unsafe fn unlock(&self); }

A raw mutex that can be tried and holds no data.

Required methods

fn try_lock(&self) -> bool[src]

Locks the mutex, non-blocking. Returns true if locked.

unsafe fn unlock(&self)[src]

Safety

Must only be called when sure that no references exist to contained data.

Loading content...

Implementors

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

Loading content...