Provide Thread objects with access to loop

This commit is contained in:
John Firebaugh
2015-04-21 10:44:38 -07:00
parent 41a44280ca
commit 32c818feea
5 changed files with 11 additions and 7 deletions

View File

@@ -3,6 +3,8 @@
#include <mbgl/storage/sqlite_cache.hpp>
typedef struct uv_loop_s uv_loop_t;
namespace mapbox {
namespace sqlite {
class Database;
@@ -14,7 +16,7 @@ namespace mbgl {
class SQLiteCache::Impl {
public:
Impl(const std::string &path = ":memory:");
Impl(uv_loop_t*, const std::string &path = ":memory:");
~Impl();
std::unique_ptr<Response> get(const Resource&);