class Semaphore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
s |
(package private) java.util.LinkedList<ModBoolean> |
waitQ |
Constructor and Description |
---|
Semaphore(int init) |
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
void |
release() |
java.util.LinkedList<ModBoolean> waitQ
private int s