阅读背景:

可以使用哪些方法使线程等待事件然后继续执行?

来源:互联网 

I have a thread running that delegates out some tasks. When a single task is complete, an event is raised saying that it has completed. These tasks need to be run in a specific order and need to wait for the previous task to finish. How can I make the thread wait until it receives the "task completed" event? (Aside from the obvious eventhandler that sets a flag and then a while loop polling the flag)I have a thread running that delegates out some




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: