Method | Description | |
---|---|---|
Enter ( ) : void |
Enters the lock. The calling thread will spin wait until it gains ownership of the lock.
|
|
Exit ( ) : void |
Exits the lock. This allows other threads to take ownership of the lock.
|
|
TryEnter ( ) : bool |
Tries to enter the lock.
|
|
TryEnter ( System.TimeSpan timeout ) : bool |
Tries to enter the lock. Fails after the specified time has elapsed without aquiring the lock.
|
public TryEnter ( System.TimeSpan timeout ) : bool | ||
timeout | System.TimeSpan | The timeout. |
return | bool |