Package one.nio.lock
Class PaddedRWLock
-
- All Implemented Interfaces:
Serializable
public class PaddedRWLock extends RWLock
Version of RWLock with cache line padding to prevent false sharing.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject
-
-
Constructor Summary
Constructors Constructor Description PaddedRWLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longpreventOptimization()-
Methods inherited from class one.nio.lock.RWLock
downgrade, lockRead, lockRead, lockWrite, lockWrite, tryAcquireShared, tryReleaseShared, unlock, unlockRead, unlockWrite
-
Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryRelease
-
Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
-