Threading Threading
Threading Threading
DocFX + Singulink = ♥

Search Results for

    Method DowngradeToReadLock

    DowngradeToReadLock()

    Downgrades the guard to a plain read lock, allowing another thread to enter upgradeable read (or write) mode while this thread retains read access. The downgrade is gapless (no other thread can enter write mode during the transition) and never blocks. Downgrading is one-way: the guard cannot be upgraded afterward, and disposal releases the read lock.

    Declaration
    public void DowngradeToReadLock()
    Exceptions
    Type Condition
    ObjectDisposedException

    The guard has been disposed.

    InvalidOperationException

    The guard did not enter the lock, is currently upgraded (dispose the write guard first), has already been downgraded, or the operation was attempted on a different thread than the one that entered the lock.

    © Singulink. All rights reserved.