public class WriteLockDebug extends java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
Constructor and Description |
---|
WriteLockDebug(ReentrantReadWriteLockTracker lock) |
Modifier and Type | Method and Description |
---|---|
int |
getHoldCount() |
StackTraceElement[] |
getStackTrace() |
boolean |
isHeldByCurrentThread() |
void |
lock() |
void |
lockInterruptibly() |
java.util.concurrent.locks.Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
unlock() |
toString
public WriteLockDebug(ReentrantReadWriteLockTracker lock)
public int getHoldCount()
getHoldCount
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public boolean isHeldByCurrentThread()
isHeldByCurrentThread
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public void lock()
lock
in interface java.util.concurrent.locks.Lock
lock
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface java.util.concurrent.locks.Lock
lockInterruptibly
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
InterruptedException
public java.util.concurrent.locks.Condition newCondition()
newCondition
in interface java.util.concurrent.locks.Lock
newCondition
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public boolean tryLock()
tryLock
in interface java.util.concurrent.locks.Lock
tryLock
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public boolean tryLock(long timeout, java.util.concurrent.TimeUnit unit) throws InterruptedException
tryLock
in interface java.util.concurrent.locks.Lock
tryLock
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
InterruptedException
public void unlock()
unlock
in interface java.util.concurrent.locks.Lock
unlock
in class java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock
public StackTraceElement[] getStackTrace()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.