|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generalized representation of the thread-lock concept.
This can be used to create other locking systems besides the basic
one-thread-at-a-time model of Java's synchronized
keyword.
Method Summary | |
boolean |
isLocked()
|
void |
lock()
Obtains this lock for the current thread, blocking until the lock is available. |
void |
release()
Releases this lock. |
boolean |
tryLock()
Tries to obtain this lock for the current thread. |
Method Detail |
public boolean isLocked()
public void lock()
public void release()
public boolean tryLock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |