de.schlichtherle.io
Class ReentrantReadWriteLock.ReadLock
java.lang.Object
java.lang.ThreadLocal
de.schlichtherle.util.ThreadLocalCounter
de.schlichtherle.io.ReentrantReadWriteLock.AbstractLock
de.schlichtherle.io.ReentrantReadWriteLock.ReadLock
- All Implemented Interfaces:
- ReentrantLock
- Enclosing class:
- ReentrantReadWriteLock
private class ReentrantReadWriteLock.ReadLock
- extends ReentrantReadWriteLock.AbstractLock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReentrantReadWriteLock.ReadLock
private ReentrantReadWriteLock.ReadLock()
lock
public void lock()
- Description copied from interface:
ReentrantLock
- Acquires this lock by the current thread, eventually blocking.
- Specified by:
lock in interface ReentrantLock- Overrides:
lock in class ReentrantReadWriteLock.AbstractLock
lockInterruptibly
public void lockInterruptibly()
throws InterruptedException
- Throws:
InterruptedException
tryLock
public boolean tryLock()
unlock
public void unlock()
- Description copied from interface:
ReentrantLock
- Releases this lock.
- Specified by:
unlock in interface ReentrantLock- Overrides:
unlock in class ReentrantReadWriteLock.AbstractLock
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.