|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--galaxy.util.FifoMutex
A first in, first out (FIFO) mutex. This is a reentrant mutex, meaning the same thread can acquire the lock multiple times. However, you must make sure to release the lock the same number of times or else other threads will be unable to acquire the lock.
Constructor Summary | |
FifoMutex()
|
Method Summary | |
void |
lock()
Locks the mutex. |
void |
unlock()
Unlocks the mutex. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FifoMutex()
Method Detail |
public void lock()
public void unlock()
lock
method). A
thread will not release the lock until this is done.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |