Mono Class Library: System.Threading.Monitor Overview | Members

System.Threading.Monitor.PulseAll Method

Notifies all waiting threads (if any) of a change in the specified locked object's state. [Edit]

public static void PulseAll (object obj)

Parameters

obj
The object that one or more threads might be waiting for. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionobj is null. [Edit]
System.Threading.SynchronizationLockExceptionThe calling thread does not own the lock for the specified object. [Edit]

Remarks

The thread that currently owns the lock on the specified object invokes this method to signal all threads waiting to acquire the lock on the object. After the signal is sent, the waiting threads are moved to the ready queue. When the thread that invoked PulseAll releases the lock, the next thread in the ready queue acquires the lock.

Note:

To signal waiting objects using PulseAll, you must be the current owner of the lock.

To signal a single thread, use the Monitor.Pulse(object) method.

[Edit]

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0