#include <PythonQtThreadSupport.h>
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()
| PythonQtGILScope::~PythonQtGILScope |
( |
| ) |
|
◆ isGILScopeEnabled()
| bool PythonQtGILScope::isGILScopeEnabled |
( |
| ) |
|
|
static |
Check if GIL scopes are enabled.
◆ release()
| void PythonQtGILScope::release |
( |
| ) |
|
◆ setGILScopeEnabled()
| void PythonQtGILScope::setGILScopeEnabled |
( |
bool | flag | ) |
|
|
static |
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.
The documentation for this class was generated from the following file: