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

Function w_CreateThreadpoolWork

PoolParty/ThreadPool.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// TODO: Use helper error handlers
4
5PFULL_TP_WORK w_CreateThreadpoolWork(PTP_WORK_CALLBACK pWorkCallback, PVOID pWorkContext, PTP_CALLBACK_ENVIRON pCallbackEnviron) {
6 const auto pTpWork = (PFULL_TP_WORK)CreateThreadpoolWork(pWorkCallback, pWorkContext, pCallbackEnviron);
7 if (NULL == pTpWork) {
8 throw std::runtime_error(GetLastErrorString("CreateThreadpoolWork", GetLastError()));
9 }
10
11 return pTpWork;
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);

Callers 1

SetupExecutionMethod · 0.85

Calls 1

GetLastErrorStringFunction · 0.85

Tested by

no test coverage detected