Struct more_sync::VersionedGuard [−][src]
pub struct VersionedGuard<'a, T> { /* fields omitted */ }
Expand description
Mutex guard returned by VersionedParker::lock
.
Implementations
Returns the current version.
The version will not change unless wait()
or
wait_timeout()
is called.
Returns if we were notified during last period.
If we never waited, notified()
returns false.
Returns the number of times we were notified during last wait.
If we never waited, notification_count()
returns 0.
Blocks the current thread until notified.
wait()
updates the version stored in this guard.
Blocks the current thread until notified, for up to timeout
.
wait_timeout()
updates the version stored in this guard.