| 192 | typedef std::unordered_map<DWORD, HANDLE, std::hash<DWORD>, std::equal_to<DWORD>, PrivateHeapAllocator<std::pair<DWORD, HANDLE>>> ThreadMap; |
| 193 | |
| 194 | void ResumeThreads(ThreadMap &suspendedThreads) { |
| 195 | for (auto start = suspendedThreads.begin(); start != suspendedThreads.end(); start++) { |
| 196 | ResumeThread((*start).second); |
| 197 | CloseHandle((*start).second); |
| 198 | } |
| 199 | suspendedThreads.clear(); |
| 200 | } |
| 201 | |
| 202 | // Suspends all threads ensuring that they are not currently in a call to Py_AddPendingCall. |
| 203 | void SuspendThreads(ThreadMap &suspendedThreads, Py_AddPendingCall* addPendingCall, PyEval_ThreadsInitialized* threadsInited) { |
nothing calls this directly
no test coverage detected