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