com.ideanest.util
Class CheckableReentrantWriterPreferenceReadWriteLock
java.lang.Object
|
+--edu.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock
|
+--edu.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
|
+--com.ideanest.util.CheckableReentrantWriterPreferenceReadWriteLock
- All Implemented Interfaces:
- CheckableReadWriteLock, edu.oswego.cs.dl.util.concurrent.ReadWriteLock
- public class CheckableReentrantWriterPreferenceReadWriteLock
- extends edu.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceReadWriteLock
- implements CheckableReadWriteLock
Method Summary |
boolean |
isReadAcquired()
Return whether the current thread has acquired the read lock. |
boolean |
isWriteAcquired()
Return whether the current thread has acquired the write lock. |
Methods inherited from class edu.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock |
readLock, writeLock |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.oswego.cs.dl.util.concurrent.ReadWriteLock |
readLock, writeLock |
CheckableReentrantWriterPreferenceReadWriteLock
public CheckableReentrantWriterPreferenceReadWriteLock()
isReadAcquired
public boolean isReadAcquired()
- Description copied from interface:
CheckableReadWriteLock
- Return whether the current thread has acquired the read lock.
- Specified by:
isReadAcquired in interface CheckableReadWriteLock
isWriteAcquired
public boolean isWriteAcquired()
- Description copied from interface:
CheckableReadWriteLock
- Return whether the current thread has acquired the write lock.
- Specified by:
isWriteAcquired in interface CheckableReadWriteLock
|