PythonQt
|
#include <PythonQtThreadSupport.h>
Public Member Functions | |
PythonQtGILScope () | |
~PythonQtGILScope () | |
void | release () |
Static Public Member Functions | |
static void | setGILScopeEnabled (bool flag) |
static bool | isGILScopeEnabled () |
Check if GIL scopes are enabled. | |
Ensures/releases the Python GIL An instance of this class can be used to allow access to the Python API from C++ code.
Definition at line 60 of file PythonQtThreadSupport.h.
PythonQtGILScope::PythonQtGILScope | ( | ) |
PythonQtGILScope::~PythonQtGILScope | ( | ) |
void PythonQtGILScope::release | ( | ) |
This allows to globally enable/disable the GIL scopes. Make sure to only call this early in the PythonQt setup, or when you are holding the GIL.