다음을 통해 공유


AbstractQueuedSynchronizer.IsHeldExclusively Property

Definition

Returns true if synchronization is held exclusively with respect to the current (calling) thread.

protected virtual bool IsHeldExclusively { [Android.Runtime.Register("isHeldExclusively", "()Z", "GetIsHeldExclusivelyHandler")] get; }
[<get: Android.Runtime.Register("isHeldExclusively", "()Z", "GetIsHeldExclusivelyHandler")>]
member this.IsHeldExclusively : bool

Property Value

true if synchronization is held exclusively; false otherwise

Attributes

Exceptions

if conditions are not supported

Remarks

Returns true if synchronization is held exclusively with respect to the current (calling) thread. This method is invoked upon each call to a ConditionObject method.

The default implementation throws UnsupportedOperationException. This method is invoked internally only within ConditionObject methods, so need not be defined if conditions are not used.

Java documentation for java.util.concurrent.locks.AbstractQueuedSynchronizer.isHeldExclusively().

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