Unosquare
    Show / Hide Table of Contents

    Interface ISyncLocker

    Defines a generic interface for synchronized locking mechanisms.

    Namespace: Swan.Threading
    Syntax
    public interface ISyncLocker : IDisposable

    Methods

    AcquireReaderLock()

    Acquires a reader lock. The lock is released when the returned locking object is disposed.

    Declaration
    IDisposable AcquireReaderLock()
    Returns
    Type Description
    IDisposable

    A disposable locking object.

    AcquireWriterLock()

    Acquires a writer lock. The lock is released when the returned locking object is disposed.

    Declaration
    IDisposable AcquireWriterLock()
    Returns
    Type Description
    IDisposable

    A disposable locking object.

    Comments

    Back to top Copyright © 2017-2019 Unosquare