com.jogamp.common.util.locks
Interface RecursiveLock

All Superinterfaces:
Lock, ThreadLock
All Known Subinterfaces:
RecursiveThreadGroupLock

public interface RecursiveLock
extends ThreadLock

Reentrance capable locking toolkit.


Field Summary
 
Fields inherited from interface com.jogamp.common.util.locks.Lock
DEBUG, DEFAULT_TIMEOUT, TIMEOUT, TRACE_LOCK
 
Method Summary
 int getHoldCount()
          Return the number of locks issued to this lock by the same thread.
 int getQueueLength()
           
 
Methods inherited from interface com.jogamp.common.util.locks.ThreadLock
getOwner, isLockedByOtherThread, isOwner, unlock, validateLocked
 
Methods inherited from interface com.jogamp.common.util.locks.Lock
isLocked, lock, tryLock, unlock
 

Method Detail

getHoldCount

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.


getQueueLength

int getQueueLength()