store uv::loop as unique_ptr

This commit is contained in:
artemp
2014-10-29 18:12:11 -04:00
parent 6622a07ad8
commit 9ff0d00912
2 changed files with 2 additions and 3 deletions

View File

@@ -134,7 +134,6 @@ public:
inline SpriteAtlas & getSpriteAtlas() { return spriteAtlas; }
util::ptr<Sprite> getSprite();
inline util::ptr<Texturepool> getTexturepool() { return texturepool; }
inline util::ptr<uv::loop> getLoop() { return loop; }
uv::worker &getWorker();
inline timestamp getAnimationTime() const { return animationTime; }
inline timestamp getTime() const { return animationTime; }
@@ -163,7 +162,7 @@ private:
private:
bool async = false;
util::ptr<uv::loop> loop;
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;

View File

@@ -31,7 +31,7 @@
using namespace mbgl;
Map::Map(View& view_)
: loop(std::make_shared<uv::loop>()),
: loop(std::make_unique<uv::loop>()),
thread(std::make_unique<uv::thread>()),
async_terminate(new uv_async_t()),
async_render(new uv_async_t()),