Package VASSAL.tools.concurrent
Class CountingReadWriteLock
java.lang.Object
VASSAL.tools.concurrent.CountingReadWriteLock
- All Implemented Interfaces:
ReadWriteLock
A
ReadWriteLock
which counts locks held.
Locks are not associated with particular threads as with
ReentrantReadWriteLock
, so can be released from threads other
than the the ones which acquired them.- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected class
protected static class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CountingReadWriteLock.ReadLock
protected final CountingReadWriteLock.Sync
protected final CountingReadWriteLock.WriteLock
-
Constructor Summary
-
Method Summary
-
Field Details
-
r
-
w
-
sync
-
-
Constructor Details
-
CountingReadWriteLock
public CountingReadWriteLock()
-
-
Method Details
-
readLock
- Specified by:
readLock
in interfaceReadWriteLock
-
writeLock
- Specified by:
writeLock
in interfaceReadWriteLock
-