MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / ResumeThreads

Function ResumeThreads

pydevd_attach_to_process/windows/attach.cpp:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192typedef std::unordered_map<DWORD, HANDLE, std::hash<DWORD>, std::equal_to<DWORD>, PrivateHeapAllocator<std::pair<DWORD, HANDLE>>> ThreadMap;
193
194void 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.
203void SuspendThreads(ThreadMap &suspendedThreads, Py_AddPendingCall* addPendingCall, PyEval_ThreadsInitialized* threadsInited) {

Callers

nothing calls this directly

Calls 5

ResumeThreadFunction · 0.85
CloseHandleFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected