当线程池尚未完成时,应用程序终止时发生了什么?

时间:2013-12-19 10:53:29

标签: winapi

我是Thread pool API的新手。我和CloseThreadpool混淆了。它说:

The thread pool is closed immediately if there are no outstanding work, I/O, timer, or wait objects that are bound to the pool; otherwise, the thread pool is released asynchronously after the outstanding objects are freed.

如果我呼叫CloseThreadpool并在有待处理的工作,I / O,计时器或等待对象时立即从mainWinMain返回。待处理操作会发生什么?被丢弃了吗?

0 个答案:

没有答案