Trait concurrency_traits::mutex::RawTimeoutMutex [−][src]
pub unsafe trait RawTimeoutMutex: RawMutex { fn lock_timeout(&self, timeout: Duration) -> bool; }
Expand description
A raw mutex that can be timed out and holds no data.
Required methods
fn lock_timeout(&self, timeout: Duration) -> bool
[src]
fn lock_timeout(&self, timeout: Duration) -> bool
[src]Locks the mutex on a timeout. Returns true if locked.
Implementors
impl<CS> RawTimeoutMutex for RawParkMutex<CS> where
CS: ThreadTimeoutParker + TimeFunctions + ThreadFunctions,
CS::ThreadId: Clone + Eq,
[src]
impl<CS> RawTimeoutMutex for RawParkMutex<CS> where
CS: ThreadTimeoutParker + TimeFunctions + ThreadFunctions,
CS::ThreadId: Clone + Eq,
[src]fn lock_timeout(&self, timeout: Duration) -> bool
[src]
impl<CS> RawTimeoutMutex for RawSpinLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]
impl<CS> RawTimeoutMutex for RawSpinLock<CS> where
CS: ThreadFunctions + TimeFunctions,
[src]