public ExcludeLock(NmsSynchronizationMonitor parent)
            {
                this.parent = parent;

                currentLock = parent.GetCurrentLock();
                parent.SetCurrentLock(null);
            }
 public NmsLock(NmsSynchronizationMonitor parent)
 {
     this.parent = parent;
 }