예제 #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();
     }
 }