Class UnfairSemaphore

java.lang.Object
io.deephaven.base.UnfairSemaphore

public class UnfairSemaphore extends Object
  • Constructor Details

    • UnfairSemaphore

      public UnfairSemaphore(int resources, int spinsUntilPark)
  • Method Details

    • acquire

      public boolean acquire(int toAcquire)
    • acquireAll

      public int acquireAll()
    • tryAcquireAll

      public int tryAcquireAll()
    • tryAcquire

      public boolean tryAcquire(int toAcquire)
    • release

      public int release(int toRelease)
    • releaseNoUnpark

      public int releaseNoUnpark(int toRelease)
    • availablePermits

      public int availablePermits()
    • forceAcquire

      public int forceAcquire(int toAcquire)