|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.network.MMiniPipe
public class MMiniPipe
Constructor Summary | |
---|---|
MMiniPipe()
Create an instance of MMiniPipe initializing the token to free. |
|
MMiniPipe(boolean taken)
Create an instance of MMiniPipe initializing the token to the specified boolean. |
Method Summary | |
---|---|
void |
release()
Try to take this token. |
void |
take()
Try to take this token. |
boolean |
takeNoBlock()
Try to take this token. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMiniPipe()
take()
would'nt block the calling
thread.
take()
,
MMiniPipe(boolean)
public MMiniPipe(boolean taken)
take()
would'nt
block the calling thread only if the specified taken
is
false.
taken
- one token critical resourcetake()
Method Detail |
---|
public void take()
public boolean takeNoBlock()
public void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |