Package com.djrapitops.plan.utilities
Class UnitSemaphoreAccessLock
- java.lang.Object
-
- com.djrapitops.plan.utilities.UnitSemaphoreAccessLock
-
public class UnitSemaphoreAccessLock extends java.lang.Object
Synchronizes a critical section of code so that only a single thread can access it at a time.
-
-
Constructor Summary
Constructors Constructor Description UnitSemaphoreAccessLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter()
void
exit()
-