private void TimingThread() { while (true) { Thread.Sleep(TimeSpan.FromSeconds(1)); lock (synclock) if (endThread) { return; } sync.Add(this.ProcessTick); } }
public void Invoke() { sync.Add(a); }