jjzjj

CancelThreadpoolIo

全部标签

windows - 用于 I/O 的最新 Windows 线程池 API 用法

我不明白最新的Windows线程池API的一部分。我需要这方面的帮助。从文档中,将其用于I/O(在我的情况下,用于SOCKET)的方法可以总结如下:调用CreateThreadpoolIo。调用StartThreadpoolIo.您可以在那里找到此警告:YoumustcallthisfunctionbeforeinitiatingeachasynchronousI/OoperationonthefilehandleboundtotheI/Ocompletionobject.FailuretodosowillcausethethreadpooltoignoreanI/Ooperation