public class LockMRPlusSW extends ReentrantLock implements Lock
| Constructor and Description |
|---|
LockMRPlusSW() |
| Modifier and Type | Method and Description |
|---|---|
void |
enterCriticalSection(boolean readLockRequested)
Enter a critical section.
|
void |
leaveCriticalSection()
Leave a critical section.
|
getHoldCount, getQueueLength, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic void enterCriticalSection(boolean readLockRequested)
LockreadLockRequested - true implies a read lock,false implies write lock.Lock.leaveCriticalSection()public void leaveCriticalSection()
LockLock.enterCriticalSection(boolean)Licenced under the Apache License, Version 2.0