summaryrefslogtreecommitdiff
path: root/platform/qt
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-01-23 14:30:01 -0800
committerKonstantin Käfer <mail@kkaefer.com>2018-02-06 18:49:06 +0100
commit78f8fd88b434099a6bc16b19d59e20b851e168ef (patch)
tree85313822229125a1bb8fb9fe9b100c3f9006862f /platform/qt
parent3ef7dab1a8c59560ef04fb4bca34637e352f9a47 (diff)
downloadqtlocation-mapboxgl-78f8fd88b434099a6bc16b19d59e20b851e168ef.tar.gz
[core] factor out RunLoop::wake()
Diffstat (limited to 'platform/qt')
-rw-r--r--platform/qt/src/run_loop.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/platform/qt/src/run_loop.cpp b/platform/qt/src/run_loop.cpp
index af0c50ebb9..c25243c8e7 100644
--- a/platform/qt/src/run_loop.cpp
+++ b/platform/qt/src/run_loop.cpp
@@ -52,11 +52,8 @@ LOOP_HANDLE RunLoop::getLoopHandle() {
return nullptr;
}
-void RunLoop::push(std::shared_ptr<WorkTask> task) {
- withMutex([&] {
- queue.push(std::move(task));
- impl->async->send();
- });
+void RunLoop::wake() {
+ impl->async->send();
}
void RunLoop::run() {