|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--autohit.utils.ObjectMonitor
A simple object monitor that can be used as a mutex.
Constructor Summary | |
ObjectMonitor()
Default constructor. |
|
ObjectMonitor(int lock)
Contructor. |
Method Summary | |
void |
lock(boolean lock)
Lock or unlock the monitor. |
void |
ownNotify()
This is a syncronized notify. |
void |
ownNotifyAll()
This is a syncronized notifyAll. |
void |
ownWait()
This is a syncronized wait. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ObjectMonitor()
public ObjectMonitor(int lock)
Method Detail |
public void lock(boolean lock)
lock
- true locks, false unlocks.public void ownNotify()
public void ownNotifyAll()
public void ownWait()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |