示例#1
0
 public void Dispose()
 {
     if (_locker != null)
     {
         _locker.Unlock(_resource);
         _locker = null;
     }
 }
示例#2
0
 public ResourceLock(ResourceLocker <T> locker, T resource)
 {
     _locker   = locker;
     _resource = resource;
 }