public class GroupMutexComposedCV extends CObject implements SyncCV
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Object's wait replacement, in which:
- the checked exception InterruptedException, is replaced by the unchecked exception ThreadInterruptedException; - supports the registration of waiting threads for interrupt purposes. |
void |
broadcast()
Object's nofifyAll replacement.
|
GroupMutex |
gmutex() |
boolean |
lockIsMine()
Is lock owned by me?
|
void |
signal()
Object's nofify replacement.
|
static boolean |
validList(Sync[] list)
Is list a valid array of Sync objects?
|
await, await, interruptWaitingThreads, registerAwaitingThreads, syncronizedLockIsMineequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterruptWaitingThreads, registerAwaitingThreadspublic static boolean validList(Sync[] list)
list - the array of Sync objectspublic GroupMutex gmutex()
public void await()
CObjectsyncronizedLockIsMine() - native lock owned by mepublic void signal()
CObjectsyncronizedLockIsMine() - native lock owned by mepublic void broadcast()
CObjectsyncronizedLockIsMine() - native lock owned by mepublic boolean lockIsMine()
CObjectlockIsMine in interface SyncCVlockIsMine in class CObject