AbstractQueuedLongSynchronizer.IsHeldExclusively Property
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.
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.
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.