Class PaddedRWLock
- All Implemented Interfaces:
Serializable
Version of RWLock with cache line padding to prevent false sharing.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class RWLock
downgrade, lockRead, lockRead, lockWrite, lockWrite, tryAcquireShared, tryReleaseShared, unlock, unlockRead, unlockWriteMethods inherited from class 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, tryReleaseMethods inherited from class AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
Field Details
-
p1
private volatile long p1 -
p2
private volatile long p2 -
p3
private volatile long p3 -
p4
private volatile long p4 -
p5
private volatile long p5 -
p6
private volatile long p6 -
p7
private volatile long p7 -
p8
private volatile long p8 -
p9
private volatile long p9 -
p10
private volatile long p10 -
p11
private volatile long p11 -
p12
private volatile long p12 -
p13
private volatile long p13
-
-
Constructor Details
-
PaddedRWLock
public PaddedRWLock()
-
-
Method Details
-
preventOptimization
public long preventOptimization()
-