46 #define PYTHONQT_FULL_THREAD_SUPPORT
48 #ifdef PYTHONQT_FULL_THREAD_SUPPORT
49 #define PYTHONQT_GIL_SUPPORT
50 #define PYTHONQT_ALLOW_THREADS_SUPPORT
53 #ifdef PYTHONQT_GIL_SUPPORT
55 #define PYTHONQT_GIL_SCOPE PythonQtGILScope internal_pythonqt_gilscope;
77 PyGILState_STATE _state;
80 static bool _enableGILScope;
85 #define PYTHONQT_GIL_SCOPE
97 #ifdef PYTHONQT_ALLOW_THREADS_SUPPORT
99 #define PYTHONQT_ALLOW_THREADS_SCOPE PythonQtThreadStateSaver internal_pythonqt_savethread;
117 _state = PyEval_SaveThread();
122 PyEval_RestoreThread(_state);
128 PyThreadState* _state;
133 #define PYTHONQT_ALLOW_THREADS_SCOPE
static void setGILScopeEnabled(bool flag)
static bool isGILScopeEnabled()
Check if GIL scopes are enabled.
PythonQtThreadStateSaver()
~PythonQtThreadStateSaver()