|
||||||||
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.MutexCV
public class MutexCV
Mutex conditional variable class.
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. |
boolean |
lockIsMine()
Is lock owned by me? |
Mutex |
mutex()
|
void |
signal()
Object's nofify replacement. |
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 Mutex mutex()
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 |