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