1 #include "GraphDataEngine.h"
2 #include "GraphDataEngine.moc"
3 #include "RenderThread.h"
5 GraphDataEngine::GraphDataEngine(QObject
*parent
, DataThread
*data_thread
) : QObject(parent
), data_thread(data_thread
) {
9 GraphDataEngine::~GraphDataEngine() {
13 void GraphDataEngine::request_data(RenderThread
*thread
, const Timestamp
×tamp
) {
14 /* TODO: cache the result . . . */
15 data_thread
->push_request(spawn_new_request(timestamp
));
18 void GraphDataEngine::handle_requests() {
20 while((request
= pop_request())) {
21 request
->process_response();