From 8ae0dcb5a46acb7a268fbc1086b5aeebb0b6da4c Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Oct 2014 16:03:58 -0700 Subject: Replace uv::rwlock with std::recursive_mutex Fixes #491 --- include/mbgl/map/transform.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/mbgl/map/transform.hpp b/include/mbgl/map/transform.hpp index 4801ff1098..e3604edd8b 100644 --- a/include/mbgl/map/transform.hpp +++ b/include/mbgl/map/transform.hpp @@ -3,14 +3,12 @@ #include #include - #include -#include #include #include #include -#include +#include namespace mbgl { @@ -80,7 +78,7 @@ private: private: View &view; - std::unique_ptr 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 -- cgit v1.2.1