|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectpt.ua.concurrent.CObject
pt.ua.concurrent.Semaphore
pt.ua.concurrent.BoundedSemaphore
pt.ua.concurrent.BinarySemaphore
public class BinarySemaphore
Binary semaphore class.
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Constructor Summary | |
|---|---|
BinarySemaphore()
Creates a binary semaphore with value 1 |
|
BinarySemaphore(int initialCount)
Creates a binary semaphore with initial value initialCount |
|
| Method Summary |
|---|
| Methods inherited from class pt.ua.concurrent.BoundedSemaphore |
|---|
maxCount, release |
| Methods inherited from class pt.ua.concurrent.Semaphore |
|---|
aquire |
| Methods inherited from class pt.ua.concurrent.CObject |
|---|
await, await, await, broadcast, interruptWaitingThreads, lockIsMine, registerAwaitingThreads, signal, syncronizedLockIsMine |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinarySemaphore()
public BinarySemaphore(int initialCount)
initialCount >= 0 && initialCount <= 1 - valid count
initialCount - initial value
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||