WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Public Member Functions | Public Attributes | List of all members
Zbl::ZblApp::AppPtr Class Reference

A mechanism for safely holding a ZblApp object pointer in thread local storage. More...

Collaboration diagram for Zbl::ZblApp::AppPtr:
Collaboration graph
[legend]

Public Member Functions

 AppPtr (ZblApp *app)
 

Public Attributes

ZblAppm_app
 

Detailed Description

A mechanism for safely holding a ZblApp object pointer in thread local storage.

The pointer-in-class construction prevents QThreadStorage from deleting the ZblApp object directly. Instead it deletes the AppPtr object. In the GUI thread Qt's QML engine handles destruction of the singleton ZblApp object and in the script threads it's handled by ZScriptWorker.

Definition at line 118 of file ZblApp.h.

Constructor & Destructor Documentation

◆ AppPtr()

Zbl::ZblApp::AppPtr::AppPtr ( ZblApp app)
inline

Definition at line 121 of file ZblApp.h.

Member Data Documentation

◆ m_app

ZblApp* Zbl::ZblApp::AppPtr::m_app

Definition at line 123 of file ZblApp.h.


The documentation for this class was generated from the following file: