110,567
社区成员
发帖
与我相关
我的任务
分享
private static ManualResetEvent _resetEvent = new ManualResetEvent(false);
private void Func1()
{
obj.invoke(Func2());
_resetEvent.WaitOne();
//等Func2通知继续后再进行下一步操作
。。。
}
private void Func2()
{
//做些什么
_resetEvent.Set();//通知等待线程继续
}