]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InGuiThread.h
Comment.
[lyx.git] / src / frontends / qt4 / InGuiThread.h
index 6d3b778a04eafb924bad289925c3d9620f225d94..764169f8b220cde27b578b544ea42f035ae6aadc 100644 (file)
@@ -12,7 +12,9 @@
 #ifndef INGUITHREAD_H
 #define INGUITHREAD_H
 
+#include <QMutex>
 #include <QObject>
+#include <QWaitCondition>
 
 #include "support/bind.h"
 #include "support/functional.h"
@@ -32,14 +34,16 @@ protected:
        void callInGuiThread();
 
 Q_SIGNALS:
-       void triggerCall();
-       void called();
+       void triggerFunctionCall();
 
 private Q_SLOTS:
        void doFunctionCall();
 
 private:
        virtual void synchronousFunctionCall() = 0;
+
+       QWaitCondition condition_;
+       QMutex sync_mutex_;
 };
 
 
@@ -169,4 +173,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // GUIABOUT_H
+#endif // INGUITHREAD_H