private void CycleDriver() { Debug.Print("cycle thread starting!"); Thread.Sleep(_cycleDelayMillisecondsInitial); int cycleCount = _vitals.CycleCount; Debug.Print("Starting cycle: " + cycleCount + " on device: " + DeviceId); _samplers.Sample("memory"); UpdateLed7R(cycleCount); _samplers.Sample("memory"); _vitals.UpdateDeviceStarts(); _vitals.UpdateDeviceLocation(); _vitals.InitPostCycle(); _vitals.InitCycleDelayMilliseconds(); _samplers.Sample("memory"); bool exit = false; while (!exit) { Thread.Sleep(_vitals.CycleDelayMilliseconds); Cycle(); } }
private static void CycleDriver() { Debug.Print("cycle thread starting!"); Thread.Sleep(_cycleDelayMillisecondsInitial); Debug.Print("Starting cycle: " + _vitals.CycleCount + " on device: " + DeviceId); _samplers.Sample("memory"); _vitals.UpdateDeviceStarts(); _vitals.UpdateDeviceLocation(); _vitals.InitPostCycle(); _vitals.InitCycleDelayMilliseconds(); while (!_exit) { Thread.Sleep(_vitals.CycleDelayMilliseconds); Cycle(); } }