Top Description Methods
com.jogamp.common.util.locks

public Interface RecursiveLock

extends ThreadLock
Known Direct Subinterfaces
com.jogamp.common.util.locks.RecursiveThreadGroupLock
Known Direct Implementers
jogamp.common.util.locks.RecursiveLockImpl01CompleteFair, jogamp.common.util.locks.RecursiveLockImpl01Unfairish, jogamp.common.util.locks.RecursiveLockImplJava5

Reentrance capable locking toolkit.

Method Summary

Modifier and TypeMethod and Description
public int
getHoldCount()

Return the number of locks issued to this lock by the same thread.

public int
Inherited from com.jogamp.common.util.locks.ThreadLock:
getOwnerisLockedByOtherThreadisOwnerunlockvalidateLocked

Method Detail

getHoldCountback to summary
public int getHoldCount()

Return the number of locks issued to this lock by the same thread.

  • A hold count of 0 identifies this lock as unlocked.
  • A hold count of 1 identifies this lock as locked.
  • A hold count of > 1 identifies this lock as recursively lock.
getQueueLengthback to summary
public int getQueueLength()