summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/default_file_source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/default_file_source.hpp')
-rw-r--r--include/mbgl/storage/default_file_source.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 01b8a3698d..8990c1c56f 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -9,12 +9,10 @@
namespace mbgl {
+template <class>
+class Actor;
class Scheduler;
-namespace util {
-template <typename T> class Thread;
-} // namespace util
-
class DefaultFileSource : public FileSource {
public:
/*
@@ -145,9 +143,9 @@ public:
class Impl;
private:
- // Shared so destruction is done on this thread
- const std::shared_ptr<FileSource> assetFileSource;
- const std::unique_ptr<util::Thread<Impl>> thread;
+ Scheduler& scheduler;
+ const std::unique_ptr<Scheduler> workerScheduler;
+ const std::unique_ptr<Actor<Impl>> worker;
std::mutex cachedBaseURLMutex;
std::string cachedBaseURL = mbgl::util::API_BASE_URL;