public class Semaphore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
counter |
Constructor and Description |
---|
Semaphore(int counter)
Creates a new instance of Semaphore
|
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
void |
release() |
Copyright 2004-2015 Wandora Team