ICondition.SignalAll Method

Definition

Wakes up all waiting threads.

[Android.Runtime.Register("signalAll", "()V", "GetSignalAllHandler:Java.Util.Concurrent.Locks.IConditionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SignalAll ();
[<Android.Runtime.Register("signalAll", "()V", "GetSignalAllHandler:Java.Util.Concurrent.Locks.IConditionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SignalAll : unit -> unit
Attributes

Remarks

Wakes up all waiting threads.

If any threads are waiting on this condition then they are all woken up. Each thread must re-acquire the lock before it can return from await.

<b>Implementation Considerations</b>

An implementation may (and typically does) require that the current thread hold the lock associated with this Condition when this method is called. Implementations must document this precondition and any actions taken if the lock is not held. Typically, an exception such as IllegalMonitorStateException will be thrown.

Java documentation for java.util.concurrent.locks.Condition.signalAll().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to