Exemplo n.º 1
0
 private void ReleaseLocks()
 {
     lock (this)
     {
         _exclusiveLocks.forEachValue(_typeWriteReleaser);
         _sharedLocks.forEachValue(_typeReadReleaser);
         _exclusiveLocks.clear();
         _sharedLocks.clear();
     }
 }
Exemplo n.º 2
0
 public virtual void Clear()
 {
     if (_outgoing != null)
     {
         _outgoing.clear();
     }
     if (_incoming != null)
     {
         _incoming.clear();
     }
     if (_loops != null)
     {
         _loops.clear();
     }
 }