31 lines · 921 B · C++
RawDownload
////  HelperScriptEngine.h//  libraries/script-engine/src/HelperScriptEngine.h////  Created by dr Karol Suprynowicz on 2024/04/28.//  Copyright 2024 Overte e.V.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include "HelperScriptEngine.h" HelperScriptEngine::HelperScriptEngine() {    std::lock_guard<std::mutex> lock(_scriptEngineLock);    _scriptEngine = newScriptEngine();    _scriptEngineThread.reset(new QThread());    _scriptEngine->setThread(_scriptEngineThread.get());    _scriptEngineThread->start();} HelperScriptEngine::~HelperScriptEngine() {    std::lock_guard<std::mutex> lock(_scriptEngineLock);    if (_scriptEngine) {        if (_scriptEngineThread) {            _scriptEngineThread->quit();            _scriptEngineThread->wait();        }        _scriptEngine.reset();    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t