Example #1
0
 public ActiveRangeCollection(ActiveRangeCollection parent)
 {
     _activeRanges            = new LinkedList <ActiveRange[]>();
     _currentActiveRangeIndex = RangesPerLine;
     _parent = parent;
     _activeChildTimerCount = 0;
 }
Example #2
0
            ActiveRangeCollection GetActiveRangeCollection(int threadId)
            {
                ActiveRangeCollection collection = _activeRanges.GetOrAdd(threadId, tid =>
                {
                    var parentCollection = (Parent != null) ? Parent.GetActiveRangeCollection(tid) : null;
                    var newCollection    = new ActiveRangeCollection(parentCollection);
                    return(newCollection);
                });

                return(collection);
            }
Example #3
0
 ActiveRangeCollection GetActiveRangeCollection(int threadId)
 {
   ActiveRangeCollection collection = _activeRanges.GetOrAdd(threadId, tid =>
   {
     var parentCollection = (Parent != null) ? Parent.GetActiveRangeCollection(tid) : null;
     var newCollection = new ActiveRangeCollection(parentCollection);
     return newCollection;
   });
   return collection;
 }
Example #4
0
 public ActiveRangeCollection(ActiveRangeCollection parent)
 {
   _activeRanges = new LinkedList<ActiveRange[]>();
   _currentActiveRangeIndex = RangesPerLine;
   _parent = parent;
   _activeChildTimerCount = 0;
 }