public override void Cancel(bool abortExecution) { lock (_lock) { _canceledWorkItemsGroup.IsCanceled = true; _workItemsQueue.Clear(); _workItemsInStpQueue = 0; _canceledWorkItemsGroup = new CanceledWorkItemsGroup(); } }
public void Cancel() { lock (_lock) { _canceledWorkItemsGroup.IsCanceled = true; _workItemsQueue.Clear(); _workItemsInStpQueue = 0; _canceledWorkItemsGroup = new CanceledWorkItemsGroup(); } }
// Token: 0x06001872 RID: 6258 // RVA: 0x000752DC File Offset: 0x000734DC public override void Cancel(bool bool_0) { lock (this._lock) { this._canceledWorkItemsGroup.IsCanceled = true; this._workItemsQueue.Clear(); this._workItemsInStpQueue = 0; this._canceledWorkItemsGroup = new CanceledWorkItemsGroup(); } if (bool_0) { this._stp.CancelAbortWorkItemsGroup(this); } }
// Token: 0x060017FE RID: 6142 // RVA: 0x00074960 File Offset: 0x00072B60 public override void Cancel(bool bool_0) { this._canceledSmartThreadPool.IsCanceled = true; this._canceledSmartThreadPool = new CanceledWorkItemsGroup(); ICollection values = this._workItemsGroups.Values; foreach (WorkItemsGroup workItemsGroup in values) { workItemsGroup.Cancel(bool_0); } if (bool_0) { foreach (SmartThreadPool.ThreadEntry current in this._workerThreads.Values) { WorkItem currentWorkItem = current.CurrentWorkItem; if (currentWorkItem != null && current.AssociatedSmartThreadPool == this && !currentWorkItem.IsCanceled) { current.CurrentWorkItem.GetWorkItemResult().Cancel(true); } } } }
public override void Cancel(bool abortExecution) { lock (_lock) { _canceledWorkItemsGroup.IsCanceled = true; _workItemsQueue.Clear(); _workItemsInStpQueue = 0; _canceledWorkItemsGroup = new CanceledWorkItemsGroup(); } if (abortExecution) { _stp.CancelAbortWorkItemsGroup(this); } }