| 3 | // TODO: Use helper error handlers |
| 4 | |
| 5 | PFULL_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 | |
| 14 | PFULL_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); |
no test coverage detected