Class ReentrantAreaLock
java.lang.Object
ca.spottedleaf.concurrentutil.lock.ReentrantAreaLock
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisHeldByCurrentThread(int x, int z) booleanisHeldByCurrentThread(int centerX, int centerZ, int radius) booleanisHeldByCurrentThread(int fromX, int fromZ, int toX, int toZ) lock(int x, int z) lock(int centerX, int centerZ, int radius) lock(int fromX, int fromZ, int toX, int toZ) tryLock(int x, int z) tryLock(int centerX, int centerZ, int radius) tryLock(int fromX, int fromZ, int toX, int toZ) voidunlock(ReentrantAreaLock.Node node)
-
Field Details
-
coordinateShift
public final int coordinateShift
-
-
Constructor Details
-
ReentrantAreaLock
public ReentrantAreaLock(int coordinateShift)
-
-
Method Details
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread(int x, int z) -
isHeldByCurrentThread
public boolean isHeldByCurrentThread(int centerX, int centerZ, int radius) -
isHeldByCurrentThread
public boolean isHeldByCurrentThread(int fromX, int fromZ, int toX, int toZ) -
tryLock
-
tryLock
-
tryLock
-
lock
-
lock
-
lock
-
unlock
-