Пример #1
0
        private void Process(AsyncThread thread)
        {
            while (thread.IsWorking())
            {
                ((TaskProcessor)thread.GetExtraData()).HandleTasks(50);

                System.Threading.Thread.Sleep(10);
            }
        }
Пример #2
0
        private void SendLogic(AsyncThread thread)
        {
            while (thread.IsWorking())
            {
                doSendMessage();

                System.Threading.Thread.Sleep(30);
            }
        }
Пример #3
0
        private void SendLogic(AsyncThread thread)
        {
            while (thread.IsWorking())
            {
                doSendMessage();

                System.Threading.Thread.Sleep(30);
            }
        }