1 #ifndef __ENVIEW_QTTHREADEDWIDGET__
2 #define __ENVIEW_QTTHREADEDWIDGET__
4 #include <QApplication>
6 #include <boost/thread/thread.hpp>
7 #include <boost/thread/mutex.hpp>
8 #include <boost/thread/condition_variable.hpp>
14 boost::shared_ptr<QApplication> app;
17 boost::condition_variable cond;
18 boost::thread gui_thread;
51 throw std::runtime_error(
"Tried to access widget before thread was started");