AbstractQueuedSynchronizer.isHeldExclusively

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

<p>The default implementation throws {@link UnsupportedOperationException}. This method is invoked internally only within {@link ConditionObject} methods, so need not be defined if conditions are not used.

@return {@code true} if synchronization is held exclusively; {@code false} otherwise @throws UnsupportedOperationException if conditions are not supported

class AbstractQueuedSynchronizer
protected
bool
isHeldExclusively
()

Meta