Beispiel #1
0
 public void SetSelector(TQItemSelector selector = null)
 {
     if (selector == null)
     {
         selector = TQItemSelector.DefaultFifoSelector;
     }
     comparer     = new EncapsulatedMessageComparer(new MessageComparer(selector));
     MessageQueue = new SortedSet <TaskMessage>(comparer);
 }
Beispiel #2
0
 public void SetSelector(TQItemSelector selector = null)
 {
     if (selector == null)
     {
         selector = TQItemSelector.DefaultFifoSelector;
     }
     this.selector = selector;
     comparer      = new EncapsulatedMessageComparer(new MessageComparerVMap(selector));
     MessageQueue  = new SecSortedSet(comparer, 64, 64);
 }