Method | Description | |
---|---|---|
Enter ( ) : void |
Acquires the lock.
|
|
Exit ( ) : void |
Releases the lock.
|
|
HasLock ( ) : bool |
Checks if the current thread has acquired the lock.
|
|
TryEnter ( int timeout ) : bool |
Attempts to acquire the lock.
|
public TryEnter ( int timeout ) : bool | ||
timeout | int | The number of milliseconds to wait. |
return | bool |