com.jogamp.common.util.locks
Interface RecursiveLock

All Superinterfaces:
Lock, LockExt

public interface RecursiveLock
extends LockExt

Reentrance locking toolkit, impl a complete fair FIFO scheduler


Field Summary
static boolean TRACE_LOCK
           
 
Fields inherited from interface com.jogamp.common.util.locks.Lock
DEBUG, DEFAULT_TIMEOUT, TIMEOUT
 
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.LockExt
getOwner, isLockedByOtherThread, isOwner, isOwner, validateLocked
 
Methods inherited from interface com.jogamp.common.util.locks.Lock
isLocked, lock, tryLock, unlock
 

Field Detail

TRACE_LOCK

static final boolean TRACE_LOCK
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()