Class ReentrantAreaLock

java.lang.Object
ca.spottedleaf.concurrentutil.lock.ReentrantAreaLock

public final class ReentrantAreaLock extends Object
  • Field Details

    • coordinateShift

      public final int coordinateShift
  • Constructor Details

    • ReentrantAreaLock

      public ReentrantAreaLock(int coordinateShift)
  • Method Details

    • isHeldByCurrentThread

      public boolean isHeldByCurrentThread(int x, int y)
    • isHeldByCurrentThread

      public boolean isHeldByCurrentThread(int centerX, int centerY, int radius)
    • isHeldByCurrentThread

      public boolean isHeldByCurrentThread(int fromX, int fromY, int toX, int toY)
    • tryLock

      public ReentrantAreaLock.Node tryLock(int x, int y)
    • tryLock

      public ReentrantAreaLock.Node tryLock(int centerX, int centerY, int radius)
    • tryLock

      public ReentrantAreaLock.Node tryLock(int fromX, int fromY, int toX, int toY)
    • lock

      public ReentrantAreaLock.Node lock(int x, int y)
    • lock

      public ReentrantAreaLock.Node lock(int centerX, int centerY, int radius)
    • lock

      public ReentrantAreaLock.Node lock(int fromX, int fromY, int toX, int toY)
    • unlock

      public void unlock(ReentrantAreaLock.Node node)