Ejemplo n.º 1
0
 public ActiveRangeCollection(ActiveRangeCollection parent)
 {
     _activeRanges            = new LinkedList <ActiveRange[]>();
     _currentActiveRangeIndex = RangesPerLine;
     _parent = parent;
     _activeChildTimerCount = 0;
 }
Ejemplo n.º 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);
            }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public ActiveRangeCollection(ActiveRangeCollection parent)
 {
   _activeRanges = new LinkedList<ActiveRange[]>();
   _currentActiveRangeIndex = RangesPerLine;
   _parent = parent;
   _activeChildTimerCount = 0;
 }