diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 17:37:13 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 17:37:13 -0800 |
commit | 79017060947c1a11f4124ab837bd171b748806de (patch) | |
tree | 68ccd7d39e6893953dcd9a0719843d96a6ba8db1 /include/mbgl/map | |
parent | 703a325518bfd3db7a25303102df6d7dd2cd3ce4 (diff) | |
download | qtlocation-mapboxgl-79017060947c1a11f4124ab837bd171b748806de.tar.gz |
Use uv::async
Diffstat (limited to 'include/mbgl/map')
-rw-r--r-- | include/mbgl/map/map.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index f29c8f1df9..5fe2ea07eb 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -130,11 +130,6 @@ private: util::ptr<Sprite> getSprite(); uv::worker& getWorker(); - // uv async callbacks - static void render(uv_async_t *async); - static void terminate(uv_async_t *async); - static void cleanup(uv_async_t *async); - // Setup void setup(); @@ -153,9 +148,9 @@ private: std::unique_ptr<uv::loop> loop; std::unique_ptr<uv::worker> workers; std::unique_ptr<uv::thread> thread; - std::unique_ptr<uv_async_t> async_terminate; - std::unique_ptr<uv_async_t> async_render; - std::unique_ptr<uv_async_t> async_cleanup; + std::unique_ptr<uv::async> async_terminate; + std::unique_ptr<uv::async> async_render; + std::unique_ptr<uv::async> async_cleanup; // If cleared, the next time the render thread attempts to render the map, it will *actually* // render the map. |