Constructor AsyncReadWriteLock
AsyncReadWriteLock()
Initializes a new instance of the AsyncReadWriteLock class that grants the lock in arrival order and measures time limits with System.
Declaration
public AsyncReadWriteLock()
AsyncReadWriteLock(AsyncReadWriteLockPreference)
Initializes a new instance of the AsyncReadWriteLock class with the specified preference that measures time limits with System.
Declaration
public AsyncReadWriteLock(AsyncReadWriteLockPreference preference)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncReadWriteLockPreference | preference | Who enters first when readers and writers both want the lock. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
AsyncReadWriteLock(AsyncReadWriteLockPreference, TimeProvider)
Initializes a new instance of the AsyncReadWriteLock class with the specified preference and time provider.
Declaration
public AsyncReadWriteLock(AsyncReadWriteLockPreference preference, TimeProvider timeProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncReadWriteLockPreference | preference | Who enters first when readers and writers both want the lock. |
| TimeProvider | timeProvider | The time provider that measures the time limits of the waits. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
| ArgumentNullException |
|