Пример #1
0
 private bool TakeDisposalExecution()
 {
     if (_status == -1)
     {
         return(false);
     }
     return(ThreadingHelper.SpinWaitSetUnless(ref _status, -1, 0, -1));
 }
Пример #2
0
 private bool TakeDisposalExecution()
 {
     return(_status != -1 && ThreadingHelper.SpinWaitSetUnless(ref _status, -1, 0, -1));
 }