MCPcopy Create free account
hub / github.com/SafeBreach-Labs/PoolParty / w_CreateThreadpoolWait

Function w_CreateThreadpoolWait

PoolParty/ThreadPool.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14PFULL_TP_WAIT w_CreateThreadpoolWait(PTP_WAIT_CALLBACK pWaitCallback, PVOID pWaitContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) {
15 const auto pTpWait = (PFULL_TP_WAIT)CreateThreadpoolWait(pWaitCallback, pWaitCallback, pCallbackEnviron);
16 if (NULL == pTpWait) {
17 throw std::runtime_error(GetLastErrorString("CreateThreadpoolWait", GetLastError()));
18 }
19 return pTpWait;
20}
21
22PFULL_TP_IO w_CreateThreadpoolIo(HANDLE hFile, PTP_WIN32_IO_CALLBACK pCallback, PVOID pContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) {
23 const auto pTpIo = (PFULL_TP_IO)CreateThreadpoolIo(hFile, pCallback, pContext, pCallbackEnviron);

Callers 1

SetupExecutionMethod · 0.85

Calls 1

GetLastErrorStringFunction · 0.85

Tested by

no test coverage detected