diff options
author | Leith Bade <leith@mapbox.com> | 2015-09-16 12:45:46 +1000 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-09-16 15:09:23 -0400 |
commit | 4b587603b3c80e1dbe42390f59d942e52cfb68a2 (patch) | |
tree | 611258e0575f141a220731ceea6fba71385c0e82 /include/mbgl/storage | |
parent | 68778883851b3f0ea31294ccbddc858f061e62f2 (diff) | |
download | qtlocation-mapboxgl-4b587603b3c80e1dbe42390f59d942e52cfb68a2.tar.gz |
Create SharedSQLiteCache
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/sqlite_cache.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mbgl/storage/sqlite_cache.hpp b/include/mbgl/storage/sqlite_cache.hpp index 65328652f4..3054b6c73c 100644 --- a/include/mbgl/storage/sqlite_cache.hpp +++ b/include/mbgl/storage/sqlite_cache.hpp @@ -26,6 +26,16 @@ private: const std::unique_ptr<util::Thread<Impl>> thread; }; +class SharedSQLiteCache : util::noncopyable { +public: + static std::shared_ptr<SQLiteCache> get(const std::string &path = ":memory:"); + +private: + SharedSQLiteCache() {} + + static std::weak_ptr<SQLiteCache> masterPtr; +}; + } #endif |