| 156 | return bHaveQuit; |
| 157 | } |
| 158 | unsigned 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 | |
| 176 | PyCWinThread::PyCWinThread() |
| 177 | { |
nothing calls this directly
no test coverage detected