Esempio n. 1
0
 public void Cancel()
 {
     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();
     }
 }