|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 Semaphorepublic boolean reserveIfAvailable()
reserveIfAvailable in interface Semaphorepublic boolean reserve(long timeout_millis)
Semaphore
reserve in interface Semaphoretimeout_millis - time to wait
public void release()
release in interface Semaphorepublic void releaseAllWaiters()
releaseAllWaiters in interface Semaphore
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||