Swtitch to stdlib mutex and cond vars
This commit is contained in:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user