summaryrefslogtreecommitdiffstats
path: root/common/threadboundary.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-24 17:51:05 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-27 23:22:10 +0200
commit9c686cda11c8d11b3c3d90a6a7be3e0188e1e7b6 (patch)
tree556fa59d485ddbc6b7bc0e33b3a09247a2ff5aac /common/threadboundary.h
parent7ae8c8719497ec7556f532bab061d3758976f792 (diff)
downloadsink-9c686cda11c8d11b3c3d90a6a7be3e0188e1e7b6.tar.gz
sink-9c686cda11c8d11b3c3d90a6a7be3e0188e1e7b6.zip
Fixed misleading function name
Diffstat (limited to 'common/threadboundary.h')
-rw-r--r--common/threadboundary.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/threadboundary.h b/common/threadboundary.h
index 9881afa..d73bdae 100644
--- a/common/threadboundary.h
+++ b/common/threadboundary.h
@@ -36,11 +36,11 @@ namespace async {
36 36
37 //Call in worker thread 37 //Call in worker thread
38 void callInMainThread(std::function<void()> f) { 38 void callInMainThread(std::function<void()> f) {
39 QMetaObject::invokeMethod(this, "addValueInMainThread", Qt::QueuedConnection, QGenericReturnArgument(), Q_ARG(std::function<void()>, f)); 39 QMetaObject::invokeMethod(this, "runInMainThread", Qt::QueuedConnection, QGenericReturnArgument(), Q_ARG(std::function<void()>, f));
40 } 40 }
41 public slots: 41 public slots:
42 //Get's called in main thread by it's eventloop 42 //Get's called in main thread by it's eventloop
43 void addValueInMainThread(std::function<void()> f) { 43 void runInMainThread(std::function<void()> f) {
44 f(); 44 f();
45 } 45 }
46 }; 46 };