Mono Class Library: Overview

System.Threading.Monitor: Method Members

The methods of System.Threading.Monitor are listed below. For a list of all members, see the Monitor Members list.

See Also: Inherited members from System.Object

Public Methods

static
Enter(object)
Acquires an exclusive lock on the specified object.
static
Exit(object)
Releases an exclusive lock on the specified object .
static
Pulse(object)
Notifies the next waiting thread (if any) of a change in the specified locked object's state.
static
PulseAll(object)
Notifies all waiting threads (if any) of a change in the specified locked object's state.
static
TryEnter(object) : bool
Attempts to acquire an exclusive lock on the specified object.
static
TryEnter(object, int) : bool
Attempts, for the specified number of milliseconds, to acquire an exclusive lock on the specified object.
static
TryEnter(object, TimeSpan) : bool
Attempts, for the specified amount of time, to acquire an exclusive lock on the specified object.
static
Wait(object) : bool
Releases the lock on an object and blocks the current thread until it reacquires the lock.
static
Wait(object, int) : bool
Releases the lock on an object and blocks the current thread until it reacquires the lock or until a specified amount of time elapses.
static
Wait(object, TimeSpan) : bool
Releases the lock on an object and blocks the current thread until it reacquires the lock or until a specified amount of time elapses.
static
Wait(object, int, bool) : bool
Documentation for this section has not yet been entered.
static
Wait(object, TimeSpan, bool) : bool
Documentation for this section has not yet been entered.