Threading Threading
Threading Threading
DocFX + Singulink = ♥

Search Results for

    Class ReaderWriterLockSlimExtensions

    Provides extension methods on ReaderWriterLockSlim to enter disposable guards.

    Inheritance
    object
    ReaderWriterLockSlimExtensions
    Namespace: Singulink.Threading
    Assembly: Singulink.Threading.dll
    Syntax
    public static class ReaderWriterLockSlimExtensions
    Remarks

    This class greatly simplifies properly releasing locks - simply wrap the call that enters the guard in a using statement and it will automatically release when existing the using block.

    Methods

    Name Description
    EnterReadGuard(ReaderWriterLockSlim)

    Enters into a read lock and returns a guard that releases the lock upon disposal.

    EnterUpgradeableReadGuard(ReaderWriterLockSlim)

    Enters into an upgradeable read lock and returns a guard that releases the lock upon disposal.

    EnterWriteGuard(ReaderWriterLockSlim)

    Enters into a write lock and returns a guard that releases the lock upon disposal.

    © Singulink. All rights reserved.