考虑将QT窗口作为阻塞线程,加入到主线程,其余线程detach掉
std::thread output(&InteractiveX::Output, this, 15);
output.detach();
std::thread input(&InteractiveX::Input, this, 15);
input.detach();
std::thread qplot(&InteractiveX::gui_start, this, 15);
qplot.join();
考虑将QT窗口作为阻塞线程,加入到主线程,其余线程detach掉
std::thread output(&InteractiveX::Output, this, 15);
output.detach();
std::thread input(&InteractiveX::Input, this, 15);
input.detach();
std::thread qplot(&InteractiveX::gui_start, this, 15);
qplot.join();