public class Counter extends Object
| Constructor and Description |
|---|
Counter(int counter)
Constructor for the Counter object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
down()
Subtract 1 from the Counter's value.
|
void |
up()
Add 1 to the Counter's value.
|
void |
waitFor0()
Lock the calling thread until this Counter's value is 0.
|
Copyright © 2016 Egothor. All Rights Reserved.