private void RunContinuations(PerlaStatus status) { switch (status) { #warning need_to_done } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (!IsCompleted) { throw new InvalidOperationException("Item Dispose NotCompleted"); } this.m_status = PerlaStatus.Disposed; ManualResetEventSlim ev = m_completionEvent; if (ev != null) { m_completionEvent = null; if (!ev.IsSet) { ev.Set(); } ev.Dispose(); } } }
protected void SetFlag(PerlaStatus flag) { this.m_status = flag; }
protected bool ContainsFlag(PerlaStatus flag) { return(this.m_status.HasFlag(flag)); }