|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.utils.SemaphoreImpl
public class SemaphoreImpl
Constructor Summary | |
---|---|
protected |
SemaphoreImpl(PluginInterface pi)
|
Method Summary | |
---|---|
void |
release()
|
void |
releaseAllWaiters()
|
void |
reserve()
|
boolean |
reserve(long timeout_millis)
reserve a semaphore subject to timeout |
boolean |
reserveIfAvailable()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SemaphoreImpl(PluginInterface pi)
Method Detail |
---|
public void reserve()
reserve
in interface Semaphore
public boolean reserveIfAvailable()
reserveIfAvailable
in interface Semaphore
public boolean reserve(long timeout_millis)
Semaphore
reserve
in interface Semaphore
timeout_millis
- time to wait
public void release()
release
in interface Semaphore
public void releaseAllWaiters()
releaseAllWaiters
in interface Semaphore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |