|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadLock
Extending the Lock
features with convenient functionality.
Field Summary |
---|
Fields inherited from interface com.jogamp.common.util.locks.Lock |
---|
DEBUG, DEFAULT_TIMEOUT, TIMEOUT, TRACE_LOCK |
Method Summary | |
---|---|
Thread |
getOwner()
|
boolean |
isLockedByOtherThread()
Query whether the lock is hold by the a thread other than the current thread. |
boolean |
isOwner(Thread thread)
Query whether the lock is hold by the given thread. |
void |
unlock(Runnable taskAfterUnlockBeforeNotify)
Execute the Runnable taskAfterUnlockBeforeNotify while holding the exclusive lock. |
void |
validateLocked()
|
Methods inherited from interface com.jogamp.common.util.locks.Lock |
---|
isLocked, lock, tryLock, unlock |
Method Detail |
---|
boolean isLockedByOtherThread()
boolean isOwner(Thread thread)
Thread getOwner()
void validateLocked() throws RuntimeException
RuntimeException
- if current thread does not hold the lockvoid unlock(Runnable taskAfterUnlockBeforeNotify)
Runnable taskAfterUnlockBeforeNotify
while holding the exclusive lock.
Then release the lock.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |