在调用函数CmtScheduleThreadPoolFunction之后进入到辅助线程中,是不是当执行到return后就算辅助线程执行完了,那么return之后又返回到什么位置了?
我的程序是按照以下顺序执行的
CmtScheduleThreadPoolFunction;主线程;CmtWaitForThreadPoolFunctionCompletion ; CmtReleaseThreadPoolFunctionID ;
谢谢
When a subroutin finished, it return to it's caller.
A thread is NOT a subroutin, it does NOT return.
If you call CmtWaitForThreadPoolFunctionCompletion function
in your main thread, then your main thread will wait for the other thread to finish.