|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.util.thread.Semaphore
Semaphore is a synchronisation resource to establish mutually exclusive regions of processing in JACK plans and threads. A Semaphore is a resource which plans and threads may wait for. On aquiring the semaphore the plan or thread will signal when they have completed. Waiting entities queue up on the semaphore and acquire it in FIFO order.
Constructor Summary | |
Semaphore()
Constructs a Semaphore. |
Method Summary | |
Cursor |
planWait()
Returns a Cursor object that can be used to determine when the semaphore is available and has been allocated to the caller. |
void |
signal()
Releases the semaphore to next waiting thread or plan. |
void |
threadWait()
Waits (using Object.wait()) until the semaphore is available. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Semaphore()
Method Detail |
public Cursor planWait()
public void threadWait()
public void signal()
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.