15 #ifndef BORNAGAIN_GUI2_QUICKSIMEDITOR_JOBMANAGER_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_JOBMANAGER_H
18 #include "darefl_export.h"
41 void requestSimulation(
const multislice_t& multislice,
const std::vector<double>& qvalues,
43 void onInterruptRequest();
52 bool m_interruptRequest{
false};
Thread-safe stack borrowed from Anthony Williams, C++ Concurrency in Action, Second edition.
Handles all thread activity for running job simulation in the background.
std::atomic< bool > m_isRunning
ModelView::threadsafe_stack< SimulationInput > m_requestedInputValues
void simulationCompleted()
ModelView::threadsafe_stack< SimulationResult > m_simulationResult
void progressChanged(int value)
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
std::vector< SliceData > multislice_t
Represents results of the simulation.