示例#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();
 }