diff options
Diffstat (limited to 'sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h')
-rw-r--r-- | sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h b/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h index e94ea043f..74690d937 100644 --- a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h +++ b/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h @@ -42,6 +42,8 @@ #include <sbkpython.h> +#include <atomic> + struct SbkObjectType; namespace PySide @@ -71,11 +73,13 @@ int qmlRegisterType(PyObject *pyObj, const char *uri, int versionMajor, int vers const char *qmlName); } -// Volatile Bool Ptr type definition. +// Volatile Bool Ptr type definition for QQmlIncubationController::incubateWhile(std::atomic<bool> *, int) + +using AtomicBool = std::atomic<bool>; typedef struct { PyObject_HEAD - volatile bool flag; + AtomicBool *flag; } QtQml_VolatileBoolObject; PyAPI_FUNC(PyTypeObject *) QtQml_VolatileBoolTypeF(void); |