|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--arlut.csd.Util.booleanSemaphore
Simple, synchronized boolean flag class.
This class is useful for providing a reliable boolean flag that can be examined by separate threads without worry over funky memory model behavior on multiprocessor systems, etc.
| Field Summary | |
private boolean |
state
|
| Constructor Summary | |
booleanSemaphore(boolean initialState)
|
|
| Method Summary | |
boolean |
isSet()
|
boolean |
set(boolean b)
Simple bidirectional test and set. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private boolean state
| Constructor Detail |
public booleanSemaphore(boolean initialState)
| Method Detail |
public boolean isSet()
public boolean set(boolean b)
Simple bidirectional test and set.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||