예제 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_isDisposed)
            {
                if (disposing)
                {
                    _lockStrategy.Exit();
                    _lockStrategy = null;
                }

                // TODO: free unmanaged resources (unmanaged objects) and override Finalize() below.
                // TODO: set large fields to null.
            }
            _isDisposed = true;
        }
예제 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_isDisposed)
            {
                if (disposing)
                {
                    _lockStrategy.Exit();
                    _lockStrategy = null;
                }

                // TODO: free unmanaged resources (unmanaged objects) and override Finalize() below.
                // TODO: set large fields to null.
            }
            _isDisposed = true;
        }
예제 #3
0
 public WatchLock(ForcefulLockStrategy lockStrategy)
 {
     _lockStrategy = lockStrategy;
 }
예제 #4
0
 public WatchLock(ForcefulLockStrategy lockStrategy)
 {
     _lockStrategy = lockStrategy;
 }