ConditionVariable.Block 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.
Overloads
Block() |
Block the current thread until the condition is opened. |
Block(Int64) |
Block the current thread until the condition is opened or until timeoutMs milliseconds have passed. |
Block()
Block the current thread until the condition is opened.
[Android.Runtime.Register("block", "()V", "GetBlockHandler")]
public virtual void Block ();
[<Android.Runtime.Register("block", "()V", "GetBlockHandler")>]
abstract member Block : unit -> unit
override this.Block : unit -> unit
- Attributes
Remarks
Block the current thread until the condition is opened.
If the condition is already opened, return immediately.
Java documentation for android.os.ConditionVariable.block()
.
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
Block(Int64)
Block the current thread until the condition is opened or until timeoutMs milliseconds have passed.
[Android.Runtime.Register("block", "(J)Z", "GetBlock_JHandler")]
public virtual bool Block (long timeoutMs);
[<Android.Runtime.Register("block", "(J)Z", "GetBlock_JHandler")>]
abstract member Block : int64 -> bool
override this.Block : int64 -> bool
Parameters
- timeoutMs
- Int64
the maximum time to wait in milliseconds.
Returns
true if the condition was opened, false if the call returns because of the timeout.
- Attributes
Remarks
Block the current thread until the condition is opened or until timeoutMs milliseconds have passed.
If the condition is already opened, return immediately.
Java documentation for android.os.ConditionVariable.block(long)
.
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.