/// <summary> /// /// </summary> /// <param name="updateInterval"></param> public TaskProcessorBase(string name, int updateInterval = 10) { UpdateInterval = updateInterval; Name = name; m_running = false; m_messageQueue = new LockFreeQueue <Action>(); m_updatableObjects = new List <Updatable>(); m_timerList = new List <UpdatableTimer>(); m_queueTimer = new Stopwatch(); Start(); }
/// <summary> /// /// </summary> protected Updatable() { m_messagesQueue = new LockFreeQueue <Action>(); m_subUpdatableObjects = new List <Updatable>(); m_timerList = new List <UpdatableTimer>(); }