mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
simulators
Move websocket to thread
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <QThread>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
@@ -52,6 +53,7 @@ class Simulators : public QObject
|
||||
void event_handler(json event);
|
||||
|
||||
private:
|
||||
QThread *m_server_thread;
|
||||
Websocket *m_server;
|
||||
std::map<std::string, std::unique_ptr<Simulator_base>> m_simulators;
|
||||
std::string m_current_simulator = "";
|
||||
|
||||
Reference in New Issue
Block a user