메소드 | 설명 | |
---|---|---|
AsyncLock ( ) : System |
Creates a new async-compatible mutual exclusion lock.
|
|
AsyncLock ( IAsyncWaitQueue |
Creates a new async-compatible mutual exclusion lock using the specified wait queue.
|
|
Lock ( ) : IDisposable |
Synchronously acquires the lock. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
|
|
Lock ( |
Synchronously acquires the lock. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
|
|
LockAsync ( ) : AwaitableDisposable |
Asynchronously acquires the lock. Returns a disposable that releases the lock when disposed.
|
|
LockAsync ( |
Asynchronously acquires the lock. Returns a disposable that releases the lock when disposed.
|
메소드 | 설명 | |
---|---|---|
ReleaseLock ( ) : void |
Releases the lock.
|
public AsyncLock ( IAsyncWaitQueue |
||
queue | IAsyncWaitQueue |
The wait queue used to manage waiters. |
리턴 | System |
public Lock ( |
||
cancellationToken | The cancellation token used to cancel the lock. If this is already set, then this method will attempt to take the lock immediately (succeeding if the lock is currently available). | |
리턴 | IDisposable |
public LockAsync ( |
||
cancellationToken | The cancellation token used to cancel the lock. If this is already set, then this method will attempt to take the lock immediately (succeeding if the lock is currently available). | |
리턴 | AwaitableDisposable |