다음을 통해 공유


AbstractQueuedSynchronizer.ConditionObject.AwaitUntil(Date) Method

Definition

Implements absolute timed condition wait.

[Android.Runtime.Register("awaitUntil", "(Ljava/util/Date;)Z", "")]
public bool AwaitUntil (Java.Util.Date? deadline);
[<Android.Runtime.Register("awaitUntil", "(Ljava/util/Date;)Z", "")>]
abstract member AwaitUntil : Java.Util.Date -> bool
override this.AwaitUntil : Java.Util.Date -> bool

Parameters

deadline
Date

the absolute time to wait until

Returns

Implements

Attributes

Exceptions

Remarks

Implements absolute timed condition wait. <ol> <li>If current thread is interrupted, throw InterruptedException. <li>Save lock state returned by #getState. <li>Invoke #release with saved state as argument, throwing IllegalMonitorStateException if it fails. <li>Block until signalled, interrupted, or timed out. <li>Reacquire by invoking specialized version of #acquire with saved state as argument. <li>If interrupted while blocked in step 4, throw InterruptedException. <li>If timed out while blocked in step 4, return false, else true. </ol>

Java documentation for java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.awaitUntil(java.util.Date).

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