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, tryLock
public ReentrantSliceLock()
public ReentrantSliceLock(boolean fair)
public void lock()
lock
in interface Lock
lock
in class ReentrantLock
public void unlock()
unlock
in interface Lock
unlock
in class ReentrantLock
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.