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
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected classprotected static classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CountingReadWriteLock.ReadLockprotected final CountingReadWriteLock.Syncprotected final CountingReadWriteLock.WriteLock -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
r
-
w
-
sync
-
-
Constructor Details
-
CountingReadWriteLock
public CountingReadWriteLock()
-
-
Method Details
-
readLock
- Specified by:
readLockin interfaceReadWriteLock
-
writeLock
- Specified by:
writeLockin interfaceReadWriteLock
-