Struct sync::RWLockWriteGuard
pub struct RWLockWriteGuard<'a, T> { cond: Condvar<'a>, // some fields omitted }
A guard which is created by locking an rwlock in write mode. Through this guard the underlying data can be accessed.
Fields
cond | Inner condition variable that can be used to sleep on the write mode of this rwlock. |
Methods
impl<'a, T: Send + Share> RWLockWriteGuard<'a, T>
fn downgrade(self) -> RWLockReadGuard<'a, T>
Consumes this write lock token, returning a new read lock token.
This will allow pending readers to come into the lock.