|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.utils.Barrier
public final class Barrier
Barrier helper object for encapsulated synchronization. Used in the GUI (classes ByLoaderGUI and ByClassFileTransformer - see Javadocs).
Constructor Summary | |
---|---|
Barrier()
|
Method Summary | |
---|---|
void |
block()
This blocks the current thread until release()
is called. |
void |
release()
This unblocks the thread that was blocked with block() . |
void |
releaseAll()
This unblocks all threads that were blocked with block() . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Barrier()
Method Detail |
---|
public void block() throws java.lang.InterruptedException
release()
is called.
java.lang.InterruptedException
public void release()
block()
.
public void releaseAll()
block()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |