//--- Class Constructor --- static GlobalClock() { // TODO (steveb): make global clock interval configurable via app settings _intervalMilliseconds = 100; // start-up the tick thread for all global timed callbacks var thread = AsyncUtil.CreateThread(MasterTickThread); thread.Priority = ThreadPriority.Highest; thread.Name = "GlobalClock"; thread.Start(); }
//--- Constructors --- internal DispatchThread() { // create new thread var thread = AsyncUtil.CreateThread(DispatchLoop); // assign ID _id = thread.ManagedThreadId; thread.Name = "DispatchThread #" + _id; _log.DebugFormat("DispatchThread #{0} created", _id); // kick-off new thread thread.Start(); }