Swtitch to stdlib mutex and cond vars

This commit is contained in:
Leith Bade
2014-11-22 13:14:22 +11:00
parent 3118521973
commit 78a667762a
2 changed files with 20 additions and 25 deletions

View File

@@ -14,6 +14,8 @@
#include <iosfwd>
#include <set>
#include <vector>
#include <mutex>
#include <condition_variable>
namespace mbgl {
@@ -180,10 +182,10 @@ private:
bool terminating = false;
bool pausing = false;
bool is_paused = false;
std::unique_ptr<uv::mutex> mutex_run;
std::unique_ptr<uv::cond> cond_run;
std::unique_ptr<uv::mutex> mutex_pause;
std::unique_ptr<uv::cond> cond_pause;
std::mutex mutex_run;
std::condition_variable cond_run;
std::mutex mutex_pause;
std::condition_variable cond_pause;
private:
// If cleared, the next time the render thread attempts to render the map, it will *actually*