Workspace 6.21.5
Static Public Member Functions | List of all members
QtScriptEnginePool Class Reference

Provides a means to create just one engine pool per thread. More...

#include <Workspace/DataExecution/Operations/Builtin/qtscriptenginepool.h>

Static Public Member Functions

static QScriptEngine & getEngine (Updater *updater)
 
static void initialise ()
 

Detailed Description

The QtScriptEnginePool is used to initialise script engines, making sure that only one is initialised per thread (and one for the GUI thread). Any class wishing to do anything with scripts should instantiate its engine from here.

Member Function Documentation

◆ getEngine()

QScriptEngine & getEngine ( Updater updater)
static

◆ initialise()

void initialise ( )
static

Call this in the main thread to initialize the mutex.