protected override void Dispose(bool disposing) { if (0 == Interlocked.CompareExchange(ref _isDisposed, 1, 0)) { _lock.Dispose(); } base.Dispose(disposing); }
public void Dispose() { m_lock.Dispose(); }
/// <summary> /// 释放资源 /// </summary> public void Dispose() { locker.Dispose(); }