Package com.jogamp.common.util.locks
Interface RecursiveLock
- All Superinterfaces:
Lock,ThreadLock
- All Known Subinterfaces:
RecursiveThreadGroupLock
Reentrance capable locking toolkit.
-
Field Summary
Fields inherited from interface com.jogamp.common.util.locks.Lock
DEBUG, DEFAULT_TIMEOUT, TIMEOUT, TRACE_LOCK -
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of locks issued to this lock by the same thread.intMethods inherited from interface com.jogamp.common.util.locks.ThreadLock
getOwner, isLockedByOtherThread, isOwner, unlock, validateLocked
-
Method Details
-
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()
-