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, unlock
public void enterCriticalSection(boolean readLockRequested)
Lock
readLockRequested
- true implies a read lock, false implies write lock.Lock.leaveCriticalSection()
public void leaveCriticalSection()
Lock
Lock.enterCriticalSection(boolean)
Licenced under the Apache License, Version 2.0