diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-04-28 21:56:42 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-05 18:35:40 +0300 |
commit | 19881f8b24c94ef66cc3ee72eebc73eeb37af2af (patch) | |
tree | 758e914b70ab3f4ecf0b8293ffbc00a6bb8c04cf /include/mbgl/storage | |
parent | 071e2e1731b447e195290936c9bf52d28f52b2d9 (diff) | |
download | qtlocation-mapboxgl-19881f8b24c94ef66cc3ee72eebc73eeb37af2af.tar.gz |
Cancel all pending requests before leaving
This still has the unwanted side effect off blocking the Map thread
waiting for the workers to return (because they hold a reference
to the Map thread main loop).
Maybe the only way to solve this would be having a I/O thread for
dispatching messages.
The Request is not bound anymore to the invoker thread because the workers
will request for glyphs, but the reply will arrive at the Map thread.
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/request.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/mbgl/storage/request.hpp b/include/mbgl/storage/request.hpp index a01808ce8e..5d979a2813 100644 --- a/include/mbgl/storage/request.hpp +++ b/include/mbgl/storage/request.hpp @@ -19,8 +19,6 @@ namespace mbgl { class Response; class Request : private util::noncopyable { - MBGL_STORE_THREAD(tid) - public: using Callback = std::function<void(const Response &)>; Request(const Resource &resource, uv_loop_t *loop, Callback callback); |