Beef Corlib
|
Classes | |
struct | MonitorLockInstance |
Public Member Functions | |
MonitorLockInstance | Enter () |
Acquires the monitor lock. More... | |
void | Exit () |
Releases the monitor lock. More... | |
bool | TryEnter () |
Attempt to enter the monitor without waiting. More... | |
bool | TryEnter (int millisecondsTimeout) |
Blocks up to a timeout, or if millisecondsTimeout is -1, will wait forever. More... | |
bool | TryEnter (TimeSpan timeout) |
|
inline |
Acquires the monitor lock.
Will block if another thread holds the lock.
Multiple calls to Enter can be issued, and an equivalent number of Exits must be issued to allow another thread to enter.
|
inline |
Releases the monitor lock.
Other threads will be able to enter the monitor unless this thread has issued multiple Enters which have not all be Exited.
|
inline |
Attempt to enter the monitor without waiting.
|
inline |
Blocks up to a timeout, or if millisecondsTimeout is -1, will wait forever.