Replace uv::rwlock with std::recursive_mutex

Fixes #491
This commit is contained in:
John Firebaugh
2014-10-22 16:03:58 -07:00
parent da8aa391d0
commit 8ae0dcb5a4
2 changed files with 30 additions and 33 deletions

View File

@@ -3,14 +3,12 @@
#include <mbgl/util/time.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/uv.hpp>
#include <cstdint>
#include <cmath>
#include <forward_list>
#include <memory>
#include <mutex>
namespace mbgl {
@@ -80,7 +78,7 @@ private:
private:
View &view;
std::unique_ptr<uv::rwlock> mtx;
mutable std::recursive_mutex mtx;
// This reflects the current state of the transform, representing the actual position of the
// map. After calling a transform function with a timer, this will likely remain the same until