public DebugReadWriteLock() {
// decorate normaly read/write locks with Thread recording
final ReadWriteLock decorated = LockFactory.DEFAULT.createReadWriteLock();
this.readLock = new DebugLock(decorated.readLock());
this.writeLock = new DebugLock(decorated.writeLock());
}
public Lock readLock() { return readLock; }
public Lock writeLock() { return writeLock; }