Наследование: WorkItemsGroupBase
Пример #1
0
 public IWorkItemsGroup CreateWorkItemsGroup(int concurrency, WIGStartInfo wigStartInfo)
 {
     IWorkItemsGroup workItemsGroup = new WorkItemsGroup(this, concurrency, wigStartInfo);
     return workItemsGroup;
 }
Пример #2
0
 // Token: 0x060017F8 RID: 6136
 // RVA: 0x00074874 File Offset: 0x00072A74
 internal void CancelAbortWorkItemsGroup(WorkItemsGroup workItemsGroup_0)
 {
     foreach (SmartThreadPool.ThreadEntry current in this._workerThreads.Values)
     {
         WorkItem currentWorkItem = current.CurrentWorkItem;
         if (currentWorkItem != null && currentWorkItem.WasQueuedBy(workItemsGroup_0) && !currentWorkItem.IsCanceled)
         {
             current.CurrentWorkItem.GetWorkItemResult().Cancel(true);
         }
     }
 }
Пример #3
0
 public IWorkItemsGroup CreateWorkItemsGroup(int concurrency)
 {
     IWorkItemsGroup workItemsGroup = new WorkItemsGroup(this, concurrency, _stpStartInfo);
     return workItemsGroup;
 }