Java.Util.Concurrent.Locks.ReentrantLock.HasWaiters Method
Queries whether any threads are waiting on the given condition associated with this lock.

Syntax

[Android.Runtime.Register("hasWaiters", "(Ljava/util/concurrent/locks/Condition;)Z", "GetHasWaiters_Ljava_util_concurrent_locks_Condition_Handler")]
public virtual bool HasWaiters (ICondition condition)

Parameters

condition
the condition

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalMonitorStateExceptionif this lock is not held
Java.Lang.IllegalArgumentExceptionif the given condition is not associated with this lock
Java.Lang.NullPointerExceptionif the condition is null

Remarks

Queries whether any threads are waiting on the given condition associated with this lock. Note that because timeouts and interrupts may occur at any time, a true return does not guarantee that a future signal will awaken any threads. This method is designed primarily for use in monitoring of the system state.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent.Locks
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1