private void Process(AsyncThread thread) { while (thread.IsWorking()) { ((TaskProcessor)thread.GetExtraData()).HandleTasks(50); System.Threading.Thread.Sleep(10); } }
private void SendLogic(AsyncThread thread) { while (thread.IsWorking()) { doSendMessage(); System.Threading.Thread.Sleep(30); } }