コード例 #1
0
 public void Cancel()
 {
     lock (_lock)
     {
         _canceledWorkItemsGroup.IsCanceled = true;
         _workItemsQueue.Clear();
         _workItemsInStpQueue    = 0;
         _canceledWorkItemsGroup = new CanceledWorkItemsGroup();
     }
 }
コード例 #2
0
 public void Cancel()
 {
     lock(_lock)
     {
         _canceledWorkItemsGroup.IsCanceled = true;
         _workItemsQueue.Clear();
         _workItemsInStpQueue = 0;
         _canceledWorkItemsGroup = new CanceledWorkItemsGroup();
     }
 }