Trait concurrency_traits::RawTryMutex [−][src]
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.
Implementors
impl<M, Q> RawTryMutex for RawCustomAsyncMutex<M, Q> where
M: 'static + RawMutex + Send + Sync,
Q: 'static + Queue<Item = RawCustomAsyncMutexMessage> + Send + Sync,
[src]
impl<M, Q> RawTryMutex for RawCustomAsyncMutex<M, Q> where
M: 'static + RawMutex + Send + Sync,
Q: 'static + Queue<Item = RawCustomAsyncMutexMessage> + Send + Sync,
[src]