diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-05-27 15:16:50 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-05-27 15:44:59 +0300 |
commit | d0561c5d6cd2a40d9062b89be6b1cb3513bdbbc1 (patch) | |
tree | 03a8764a26a6f5124a973b51c6cb4c909c3c511f /platform/qt | |
parent | 6cfee1db7cade57fcf3a9d4a6dfbf3e90a85ea75 (diff) | |
download | qtlocation-mapboxgl-d0561c5d6cd2a40d9062b89be6b1cb3513bdbbc1.tar.gz |
[Qt] Assert that we run the async on the right loop
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/src/async_task.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/qt/src/async_task.cpp b/platform/qt/src/async_task.cpp index cfad70d8dd..c376c1c370 100644 --- a/platform/qt/src/async_task.cpp +++ b/platform/qt/src/async_task.cpp @@ -4,6 +4,8 @@ #include <mbgl/util/run_loop.hpp> +#include <cassert> + namespace mbgl { namespace util { @@ -20,6 +22,8 @@ void AsyncTask::Impl::maySend() { } void AsyncTask::Impl::runTask() { + assert(runLoop == RunLoop::Get()); + queued.clear(); task(); } |