Threading Threading
Threading Threading
DocFX + Singulink = ♥

Search Results for

    Struct LeafLockGuard

    Represents a hold on a LeafLock. Disposing the instance leaves the lock.

    Implements
    IDisposable
    Namespace: Singulink.Threading
    Assembly: Singulink.Threading.dll
    Syntax
    public struct LeafLockGuard : IDisposable
    Remarks

    The guard must be disposed on the thread that entered the lock. Disposing it on another thread throws an InvalidOperationException and leaves the lock held, so the guard can still be disposed on the right thread.

    Properties

    Name Description
    IsDefault

    Gets a value indicating whether the instance is in its default, uninitialized state.

    IsDisposed

    Gets a value indicating whether the object has been disposed.

    Methods

    Name Description
    Dispose()

    Leaves the lock. Does nothing if the guard has already been disposed.

    © Singulink. All rights reserved.