Package com.biglybt.pifimpl.local.utils
Class SemaphoreImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.SemaphoreImpl
- All Implemented Interfaces:
Semaphore
-
Field Details
-
next_sem_id
private static long next_sem_id -
sem
-
-
Constructor Details
-
SemaphoreImpl
-
-
Method Details
-
reserve
public void reserve() -
reserveIfAvailable
public boolean reserveIfAvailable()- Specified by:
reserveIfAvailable
in interfaceSemaphore
-
reserve
public boolean reserve(long timeout_millis) Description copied from interface:Semaphore
reserve a semaphore subject to timeout -
release
public void release() -
releaseAllWaiters
public void releaseAllWaiters()- Specified by:
releaseAllWaiters
in interfaceSemaphore
-