Example #1
0
        private void TimingThread()
        {
            while (true)
            {
                Thread.Sleep(TimeSpan.FromSeconds(1));

                lock (synclock)
                    if (endThread)
                    {
                        return;
                    }

                sync.Add(this.ProcessTick);
            }
        }
Example #2
0
 public void Invoke()
 {
     sync.Add(a);
 }