MCPcopy Create free account
hub / github.com/mhammond/pywin32 / ThreadWorkerEntryPoint

Function ThreadWorkerEntryPoint

Pythonwin/win32thread.cpp:158–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 return bHaveQuit;
157}
158unsigned int ThreadWorkerEntryPoint( LPVOID lpvoid )
159{
160 CPythonWinThread *pThis = (CPythonWinThread *)lpvoid;
161 CEnterLeavePython _celp;
162 PyObject *result = PyEval_CallObject( pThis->obFunc, pThis->obArgs );
163 if (result == NULL) {
164 if (PyErr_Occurred() == PyExc_SystemExit)
165 PyErr_Clear();
166 else {
167 ExceptionHandler(EHA_PRINT_ERROR, _T("Unhandled exception in thread"));
168 }
169 }
170 else
171 Py_DECREF(result);
172 // Cleanup thread state?
173 return 0;
174}
175
176PyCWinThread::PyCWinThread()
177{

Callers

nothing calls this directly

Calls 1

ExceptionHandlerFunction · 0.85

Tested by

no test coverage detected