| |
|
| java.lang.Object org.jfree.threads.ReaderWriterLock
ReaderWriterLock | public class ReaderWriterLock (Code) | | A reader-writer lock from "Java Threads" by Scott Oak and Henry Wong.
author: Scott Oak and Henry Wong |
Method Summary | |
public synchronized void | lockRead() Grab the read lock. | public synchronized void | lockWrite() Grab the write lock. | public synchronized void | unlock() Unlock. |
ReaderWriterLock | public ReaderWriterLock()(Code) | | Default constructor.
|
lockRead | public synchronized void lockRead()(Code) | | Grab the read lock.
|
lockWrite | public synchronized void lockWrite()(Code) | | Grab the write lock.
|
unlock | public synchronized void unlock()(Code) | | Unlock.
|
|
|
|