|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.utils.SimpleLock
public class SimpleLock
An exclusive re-entrant lock.
This lock implementation provides exactly the same functionality as
Java's synchronization
block construct except that it
isn't block-oriented.
A thread may acquire this lock multiple times and must release it once for each acquisition.
Constructor Summary | |
---|---|
SimpleLock()
|
Method Summary | |
---|---|
void |
lock()
|
void |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLock()
Method Detail |
---|
public void lock()
public void unlock() throws java.lang.IllegalMonitorStateException
java.lang.IllegalMonitorStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |