ICondition.Signal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wakes up one waiting thread.
[Android.Runtime.Register("signal", "()V", "GetSignalHandler:Java.Util.Concurrent.Locks.IConditionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Signal ();
[<Android.Runtime.Register("signal", "()V", "GetSignalHandler:Java.Util.Concurrent.Locks.IConditionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Signal : unit -> unit
- Attributes
Remarks
Wakes up one waiting thread.
If any threads are waiting on this condition then one is selected for waking up. That thread must then re-acquire the lock before returning 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.signal()
.
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.