Beispiel #1
0
 /**
  * Create a new SyncMap protecting the given map, and using the given ReadWriteLock to control
  * reader and writer methods.
  */
 public SyncMap(Map map, ReadWriteLock rwl) {
   this(map, rwl.readLock(), rwl.writeLock());
 }
 /**
  * Create a new SyncSortedSet protecting the given set, and using the given ReadWriteLock to
  * control reader and writer methods.
  */
 public SyncSortedSet(SortedSet set, ReadWriteLock rwl) {
   super(set, rwl.readLock(), rwl.writeLock());
 }