public class ReentrantSliceLock
extends java.util.concurrent.locks.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 java.util.concurrent.locks.Locklock in class java.util.concurrent.locks.ReentrantLockpublic void unlock()
unlock in interface java.util.concurrent.locks.Lockunlock in class java.util.concurrent.locks.ReentrantLockCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.