Exemplo n.º 1
0
 private bool TakeDisposalExecution()
 {
     if (_status == -1)
     {
         return(false);
     }
     return(ThreadingHelper.SpinWaitSetUnless(ref _status, -1, 0, -1));
 }
Exemplo n.º 2
0
 private bool TakeDisposalExecution()
 {
     return(_status != -1 && ThreadingHelper.SpinWaitSetUnless(ref _status, -1, 0, -1));
 }