| Modifier and Type | Field and Description |
|---|---|
private int |
m_waiters |
private static int |
MAX_USERS_ALLOWED |
| Constructor and Description |
|---|
WaitSemaphore() |
| Modifier and Type | Method and Description |
|---|---|
void |
doNotify()
Wakes up this sync that has been posed in wait status by a
WaitSync.doWait() call. |
void |
doWait()
Pone in wait status this sync, until
WaitSync.doNotify() is called to wake it up. |
int |
getWaiters() |
java.lang.String |
toString() |
acquire, getUsers, logAcquire, logDeadlock, logRelease, release, waitImplprivate static final int MAX_USERS_ALLOWED
private int m_waiters
public void doWait()
throws java.lang.InterruptedException
WaitSyncWaitSync.doNotify() is called to wake it up.doWait in interface WaitSyncjava.lang.InterruptedExceptionWaitSync.doNotify()public void doNotify()
throws java.lang.InterruptedException
WaitSyncWaitSync.doWait() call.
If this sync is not waiting, invoking this method should have no effect.doNotify in interface WaitSyncjava.lang.InterruptedExceptionWaitSync.doWait()public int getWaiters()