Class UnitSemaphoreAccessLock

java.lang.Object
com.djrapitops.plan.utilities.UnitSemaphoreAccessLock

public class UnitSemaphoreAccessLock extends Object
Synchronizes a critical section of code so that only a single thread can access it at a time.
  • Constructor Details

    • UnitSemaphoreAccessLock

      public UnitSemaphoreAccessLock()
  • Method Details

    • enter

      public void enter()
    • exit

      public void exit()