From 4c2e720b1522d2a45980ac8dcf34d2a3783cf426 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 24 Feb 2017 15:08:49 +0200 Subject: [core] Add a pause/resume API to the DefaultFileSource It will halt the networking thread completely. Expired and error'ed tiles won't get re-requested until resume() is called again. --- include/mbgl/storage/default_file_source.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/mbgl/storage') 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&); -- cgit v1.2.1