summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-05-02 11:37:02 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-05-03 10:01:19 +0300
commit86b94e30e17af5404ff69c5fef19abc2bc8b6fa1 (patch)
treebba7f938d2b88984244e1c11cbd8079d2efcc6f1 /include
parentf7915fdc51f4924df2e2630b64908938ffa49830 (diff)
downloadqtlocation-mapboxgl-86b94e30e17af5404ff69c5fef19abc2bc8b6fa1.tar.gz
[core] Keep shared_ptr to thread pool in CustomGeometrySource
CustomGeometrySource should keep strong reference to shared thread pool that is used by CustomTileLoader.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/sources/custom_geometry_source.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/style/sources/custom_geometry_source.hpp b/include/mbgl/style/sources/custom_geometry_source.hpp
index 9daeeb3819..3f29d0c0fb 100644
--- a/include/mbgl/style/sources/custom_geometry_source.hpp
+++ b/include/mbgl/style/sources/custom_geometry_source.hpp
@@ -12,6 +12,7 @@ class OverscaledTileID;
class CanonicalTileID;
template <class T>
class Actor;
+class ThreadPool;
namespace style {
@@ -46,6 +47,7 @@ public:
class Impl;
const Impl& impl() const;
private:
+ std::shared_ptr<ThreadPool> threadPool;
std::unique_ptr<Actor<CustomTileLoader>> loader;
};