mondrian.rolap
Class RolapUtil.Semaphore
java.lang.Object
mondrian.rolap.RolapUtil.Semaphore
- Enclosing class:
- RolapUtil
static class RolapUtil.Semaphore
- extends Object
A Semaphore is a primitive for process synchronization.
Given a semaphore initialized with count, no more than
count threads can acquire the semaphore using the
enter() method. Waiting threads block until enough threads have
called leave().
|
Method Summary |
(package private) void |
enter()
|
(package private) void |
leave()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolapUtil.Semaphore
RolapUtil.Semaphore(int count)
enter
void enter()
leave
void leave()