Package com.djrapitops.plan.utilities
Class UnitSemaphoreAccessLock
java.lang.Object
com.djrapitops.plan.utilities.UnitSemaphoreAccessLock
Synchronizes a critical section of code so that only a single thread can access it at a time.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UnitSemaphoreAccessLock
public UnitSemaphoreAccessLock()
-
-
Method Details
-
enter
public void enter() -
exit
public void exit()
-