【发布时间】:2009-03-18 08:15:48
【问题描述】:
我有一个函数,我在 c#.net 中使用了一个线程。
我在该线程的下一行有另一个函数。但是这个函数只能在线程执行完毕后调用。
我该怎么做?
例子..
Somefunction()
{
// thread //(thread started)
add() (another function but need to be executed only tha above thread gets over)
}
【问题讨论】:
-
我相信您想要的是在后台线程工作时继续执行主线程,但在完成后执行回调函数,对吧?
标签: c# .net multithreading