public TimerThread(ActionSyncronizer sync) { this.sync = sync; ThreadManager.NewThread(this.TimingThread, () => { lock (synclock) endThread = true; }, "TimerThread"); }