|
||||||||
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.GroupMutexComposedCV
public class GroupMutexComposedCV
A composed conditional variable for an exterior GroupMutex with a list of alternative internal Sync objects (used, for example, to integrate internal, external and conditional synchronization of shared objects). A unique null reference is allowed to enable the inclusion of lock-free schemes.
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java
assert.
Method Summary | |
---|---|
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? |
Methods inherited from class pt.ua.concurrent.CObject |
---|
await, await, interruptWaitingThreads, registerAwaitingThreads, syncronizedLockIsMine |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.ua.concurrent.InterruptibleAwaitingThreads |
---|
interruptWaitingThreads, registerAwaitingThreads |
Method Detail |
---|
public static boolean validList(Sync[] list)
public GroupMutex gmutex()
public void await()
CObject
syncronizedLockIsMine()
- native lock owned by me
await
in interface SyncCV
await
in class CObject
public void signal()
CObject
syncronizedLockIsMine()
- native lock owned by me
signal
in interface SyncCV
signal
in class CObject
public void broadcast()
CObject
syncronizedLockIsMine()
- native lock owned by me
broadcast
in interface SyncCV
broadcast
in class CObject
public boolean lockIsMine()
CObject
lockIsMine
in interface SyncCV
lockIsMine
in class CObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |