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