ReentrantLock
struct · ferroui-headless-vnc · v0.5.0
struct ReentrantLock
A reentrant lock without data.
Members
new
fn new() -> Self
A new lock that no thread holds.
lock
fn lock(self: &Self) -> ReentrantLockGuard<'_>
Takes the lock, waiting while another thread holds it. The thread that holds it takes it again at once.
is_held_by_current_thread
fn is_held_by_current_thread(self: &Self) -> bool
Whether the current thread holds the lock.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsSameDefaultErasedDestructorIntoEither
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.