FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReentrantLock

    struct · ferroui-headless-vnc · v0.5.0

    struct ReentrantLock
    

    A reentrant lock without data.

    View source

    Members

    new

    fn new() -> Self
    

    A new lock that no thread holds.

    Source

    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.

    Source

    is_held_by_current_thread

    fn is_held_by_current_thread(self: &Self) -> bool
    

    Whether the current thread holds the lock.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • Same
    • Default
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.