|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.util.RWLock
This class provides support for synchronizing threads acting on a generic resource in such a way that - If a thread is writing the resource no other thread can act on it in any way - Several threads can read the resource at the same time - If one or more threads are reading the resource no thread can write it
Constructor Summary | |
RWLock()
|
Method Summary | |
protected void |
onWriteEnd()
|
protected void |
onWriteStart()
|
void |
readLock()
|
void |
readUnlock()
|
void |
writeLock()
|
void |
writeUnlock()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RWLock()
Method Detail |
public void writeLock()
public void writeUnlock()
public void readLock()
public void readUnlock()
protected void onWriteStart()
protected void onWriteEnd()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |