Trait concurrency_traits::rw_lock::RawUpgradeTimeoutRwLock[][src]

pub unsafe trait RawUpgradeTimeoutRwLock: RawTryUpgradeRwLock {
    unsafe fn upgrade_timeout(&self, timeout: Duration) -> bool;
}
Expand description

A raw rw lock which has guards that can be upgraded on a timeout.

Required methods

unsafe fn upgrade_timeout(&self, timeout: Duration) -> bool[src]

Blocks until lock is changed from read to write (true) or times out (false).

Safety

Caller must ensure that a reader exists.

Implementors

impl<CS> RawUpgradeTimeoutRwLock for RawSpinRwLock<CS> where
    CS: ThreadFunctions + TimeFunctions
[src]

unsafe fn upgrade_timeout(&self, timeout: Duration) -> bool[src]