Package io.deephaven.base
Class FIFOSemaphore
java.lang.Object
io.deephaven.base.FIFOSemaphore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acquire
(int toAcquire) int
int
void
forceAcquire
(int toAcquire) void
release
(int toRelease) boolean
tryAcquire
(int toAcquire) int
-
Constructor Details
-
FIFOSemaphore
public FIFOSemaphore(int spinsUntilPark, int resources)
-
-
Method Details
-
tryAcquireAll
public int tryAcquireAll() -
tryAcquire
public boolean tryAcquire(int toAcquire) -
acquire
public void acquire(int toAcquire) -
acquireAll
public int acquireAll() -
release
public void release(int toRelease) -
availablePermits
public int availablePermits() -
forceAcquire
public void forceAcquire(int toAcquire)
-