summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mbgl/storage/default_file_source.hpp3
-rw-r--r--platform/default/default_file_source.cpp8
2 files changed, 11 insertions, 0 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index a15ee9a29b..effc60745e 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -115,6 +115,9 @@ public:
*/
void setOfflineMapboxTileCountLimit(uint64_t) const;
+ void pause();
+ void resume();
+
// For testing only.
void put(const Resource&, const Response&);
diff --git a/platform/default/default_file_source.cpp b/platform/default/default_file_source.cpp
index 3742414f3d..46178dbb8a 100644
--- a/platform/default/default_file_source.cpp
+++ b/platform/default/default_file_source.cpp
@@ -261,6 +261,14 @@ void DefaultFileSource::setOfflineMapboxTileCountLimit(uint64_t limit) const {
thread->invokeSync(&Impl::setOfflineMapboxTileCountLimit, limit);
}
+void DefaultFileSource::pause() {
+ thread->pause();
+}
+
+void DefaultFileSource::resume() {
+ thread->resume();
+}
+
// For testing only:
void DefaultFileSource::put(const Resource& resource, const Response& response) {