예제 #1
0
 /// <summary>
 /// Construtor padrão.
 /// </summary>
 /// <param name="owner"></param>
 public ProxyMonitor(ObservableCollectionProxy <T, TProxy> owner)
 {
     _owner = owner;
     if (_owner._waitCollectionChangesCount == 0)
     {
         System.Threading.Monitor.Enter(_owner._syncCollectionChange);
     }
     _owner._waitCollectionChangesCount++;
 }
예제 #2
0
 /// <summary>
 /// Construtor padrão.
 /// </summary>
 /// <param name="owner"></param>
 public ReentracyMonitor(ObservableCollectionProxy <T, TProxy> owner)
 {
     _owner = owner;
     lock (_owner._reentrancyThreads)
         _owner._reentrancyThreads.Add(System.Threading.Thread.CurrentThread);
 }