diff options
Diffstat (limited to 'src/mbgl/map/environment.hpp')
-rw-r--r-- | src/mbgl/map/environment.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mbgl/map/environment.hpp b/src/mbgl/map/environment.hpp index 97813d3589..e5d5f6e8b8 100644 --- a/src/mbgl/map/environment.hpp +++ b/src/mbgl/map/environment.hpp @@ -20,6 +20,7 @@ enum class ThreadType : uint8_t { Unknown = 0, Main = 1 << 0, Map = 1 << 1, + TileWorker = 1 << 2, }; class Environment final : private util::noncopyable { @@ -33,25 +34,25 @@ public: std::thread::id id; }; - Environment(FileSource &); + Environment(FileSource&); static Environment& Get(); static bool inScope(); static bool currentlyOn(ThreadType); static std::string threadName(); - void requestAsync(const Resource &, std::function<void(const Response &)>); - Request *request(const Resource &, std::function<void(const Response &)>); - void cancelRequest(Request *); + void requestAsync(const Resource&, std::function<void(const Response&)>); + Request* request(const Resource&, std::function<void(const Response&)>); + void cancelRequest(Request*); // Request to terminate the environment. void terminate(); private: - FileSource &fileSource; + FileSource& fileSource; public: - uv_loop_t *const loop; + uv_loop_t* const loop; }; } |