我是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,计时器或等待对象时立即从main
或WinMain
返回。待处理操作会发生什么?被丢弃了吗?