public class Semaphor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Integer |
count
The counter for the semaphore.
|
| Constructor and Description |
|---|
Semaphor(java.lang.Integer count)
The constructor for the semaphore.
|
| Modifier and Type | Method and Description |
|---|---|
void |
down()
lock the attribute.
|
void |
up()
unlock the attribute.
|