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