|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.core3.util.AEMonSem org.gudy.azureus2.core3.util.AESemaphore
public class AESemaphore
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gudy.azureus2.core3.util.AEMonSem |
---|
AEMonSem.monSemData |
Field Summary | |
---|---|
protected Thread |
latest_waiter
|
Fields inherited from class org.gudy.azureus2.core3.util.AEMonSem |
---|
DEBUG, DEBUG_CHECK_DUPLICATES, DEBUG_TIMER, entry_count, is_monitor, last_entry_count, last_trace_key, name, waiting |
Constructor Summary | |
---|---|
AESemaphore(String _name)
|
|
AESemaphore(String _name,
int count)
|
Method Summary | |
---|---|
String |
getString()
|
int |
getValue()
|
boolean |
isReleasedForever()
|
void |
release()
|
void |
releaseAllWaiters()
|
void |
releaseForever()
|
void |
reserve()
|
boolean |
reserve(long millis)
|
boolean |
reserveIfAvailable()
|
int |
reserveSet(int max_to_reserve)
|
int |
reserveSet(int max_to_reserve,
long millis)
|
protected int |
reserveSupport(long millis,
int max_to_reserve)
|
Methods inherited from class org.gudy.azureus2.core3.util.AEMonSem |
---|
check, debugEntry, debugExit, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Thread latest_waiter
Constructor Detail |
---|
public AESemaphore(String _name)
public AESemaphore(String _name, int count)
Method Detail |
---|
public void reserve()
public boolean reserve(long millis)
public boolean reserveIfAvailable()
public int reserveSet(int max_to_reserve, long millis)
public int reserveSet(int max_to_reserve)
protected int reserveSupport(long millis, int max_to_reserve)
public void release()
public void releaseAllWaiters()
public void releaseForever()
public boolean isReleasedForever()
public int getValue()
public String getString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |