summaryrefslogtreecommitdiffstats
path: root/common/threadboundary.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/threadboundary.h')
-rw-r--r--common/threadboundary.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/threadboundary.h b/common/threadboundary.h
index 7bea4ea..dd86b20 100644
--- a/common/threadboundary.h
+++ b/common/threadboundary.h
@@ -31,17 +31,17 @@ namespace async {
31* A helper class to invoke a method in a different thread using the event loop. 31* A helper class to invoke a method in a different thread using the event loop.
32* The ThreadBoundary object must live in the thread where the function should be called. 32* The ThreadBoundary object must live in the thread where the function should be called.
33*/ 33*/
34class SINK_EXPORT ThreadBoundary : public QObject { 34class SINK_EXPORT ThreadBoundary : public QObject
35{
35 Q_OBJECT 36 Q_OBJECT
36public: 37public:
37 ThreadBoundary(); 38 ThreadBoundary();
38 virtual ~ThreadBoundary(); 39 virtual ~ThreadBoundary();
39 40
40 //Call in worker thread 41 // Call in worker thread
41 void callInMainThread(std::function<void()> f); 42 void callInMainThread(std::function<void()> f);
42public slots: 43public slots:
43 //Get's called in main thread by it's eventloop 44 // Get's called in main thread by it's eventloop
44 void runInMainThread(std::function<void()> f); 45 void runInMainThread(std::function<void()> f);
45}; 46};
46
47} 47}