summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-05-30 21:56:46 -0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-06-21 14:30:09 +0300
commit999de53f11a5dbddcd0217326ad17b9d8a8de791 (patch)
treeaae01aee17b9a866326adc9947ad151bd923daf4 /include
parentc34d1cfaa7a9e61c6bb8f07d4fff547ad68e3115 (diff)
downloadqtlocation-mapboxgl-999de53f11a5dbddcd0217326ad17b9d8a8de791.tar.gz
[core] Convert DefaultFileSource to ThreadedObject
Fixes #6426
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/storage/default_file_source.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index f929334f28..df4ab4ab34 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -10,7 +10,7 @@
namespace mbgl {
namespace util {
-template <typename T> class Thread;
+template <typename T> class ThreadedObject;
} // namespace util
class DefaultFileSource : public FileSource {
@@ -143,7 +143,7 @@ public:
private:
// Shared so destruction is done on this thread
const std::shared_ptr<FileSource> assetFileSource;
- const std::unique_ptr<util::Thread<Impl>> thread;
+ const std::unique_ptr<util::ThreadedObject<Impl>> impl;
std::mutex cachedBaseURLMutex;
std::string cachedBaseURL = mbgl::util::API_BASE_URL;