Exemple #1
0
        void DoWork()
        {
            startEvent.WaitOne();
            startEvent.Reset();

            while (!Disposed)
            {
                CurrentWorker.Act();

                joinEvent.Set();
                startEvent.WaitOne();
                startEvent.Reset();
            }
        }