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

Function ui_thread_run

Pythonwin/win32thread.cpp:272–282  ·  view source on GitHub ↗

@pymethod int|PyCWinThread|Run|Starts the message pump. Advanced users only

Source from the content-addressed store, hash-verified

270
271// @pymethod int|PyCWinThread|Run|Starts the message pump. Advanced users only
272static PyObject *
273ui_thread_run(PyObject *self, PyObject *args)
274{
275 CHECK_NO_ARGS2(args, "Run");
276 CWinThread *pThread = GetCWinThreadPtr(self);
277 if (!pThread) return NULL;
278 GUI_BGN_SAVE;
279 long rc = pThread->CWinThread::Run();
280 GUI_END_SAVE;
281 return PyInt_FromLong(rc);
282}
283
284// @pymethod |PyCWinThread|CreateThread|Creates the actual thread behind the thread object.
285static PyObject *

Callers

nothing calls this directly

Calls 1

GetCWinThreadPtrFunction · 0.85

Tested by

no test coverage detected