Mono Class Library: System.Threading.Monitor Overview | MembersSystem.Threading.Monitor.PulseAll Method |
Notifies all waiting threads (if any) of a change in the specified locked object's state. [Edit]
|
Type Reason ArgumentNullException obj is null. [Edit] System.Threading.SynchronizationLockException The calling thread does not own the lock for the specified object. [Edit]
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:[Edit]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.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0