Class FIFOSemaphore

java.lang.Object
io.deephaven.base.FIFOSemaphore

public class FIFOSemaphore extends Object
  • 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)