Package com.strobel.concurrent
Class StripedLock<T>
java.lang.Object
com.strobel.concurrent.StripedLock<T>
- Direct Known Subclasses:
StripedReentrantLock
-
Field Details
-
LOCK_COUNT
private static final int LOCK_COUNT- See Also:
-
locks
-
_lockAllocationCounter
private int _lockAllocationCounter
-
-
Constructor Details
-
StripedLock
-
-
Method Details
-
allocateLock
-
allocateLockIndex
public int allocateLockIndex() -
createLock
-
lock
public abstract void lock(int index) -
unlock
public abstract void unlock(int index)
-