public class ReentrantSliceLock extends ReentrantLock
| Constructor and Description |
|---|
ReentrantSliceLock() |
ReentrantSliceLock(boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
void |
lock()
Locks only for parent thread and let the child use parent's lock.
|
void |
unlock()
Unlocks only if parent thread.
|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock, tryLockpublic ReentrantSliceLock()
public ReentrantSliceLock(boolean fair)
public void lock()
lock in interface Locklock in class ReentrantLockpublic void unlock()
unlock in interface Lockunlock in class ReentrantLockCopyright © 2006–2022 Apache Software Foundation. All rights reserved.