LockUtilities Methods

The LockUtilities type exposes the following members.

Methods


  Name Description
Public method Static member Acquire
Acquires a semaphore as a blocking operation. When this is disposed, the semaphore will be released.
Public method Static member AcquireAsync
Acquires a semaphore as an asynchronous operation. When this is disposed, the semaphore will be released.
Public method Static member Read
Acquires a read lock on the indicated ReaderWriterLockSlim.
Public method Static member Write
Acquires a write lock on the indicated ReaderWriterLockSlim.