diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-23 14:30:01 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-02-07 18:21:58 +0100 |
commit | 9b961fb6f9d1bdc9a5a8afe01162858d3ce2c39c (patch) | |
tree | e0f02b712e93c25da0c11e9fbe39ff69b59bba01 /platform/darwin | |
parent | 97005ccdfa6641a3d33fbe046b5c7dc5fdb72999 (diff) | |
download | qtlocation-mapboxgl-9b961fb6f9d1bdc9a5a8afe01162858d3ce2c39c.tar.gz |
[core] factor out RunLoop::wake()
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/run_loop.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/platform/darwin/src/run_loop.cpp b/platform/darwin/src/run_loop.cpp index d60a88cf52..0778b004e5 100644 --- a/platform/darwin/src/run_loop.cpp +++ b/platform/darwin/src/run_loop.cpp @@ -29,11 +29,8 @@ RunLoop::~RunLoop() { Scheduler::SetCurrent(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() { |