Use C++11 std::mutex and std::lock_guard instead of our RAII wrapper.
[cubemap] / accesslog.h
index 9eae365..b6ce61c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <pthread.h>
 #include <stdio.h>
+#include <mutex>
 #include <string>
 #include <vector>
 
@@ -33,7 +34,7 @@ private:
        FILE *logfp;
        std::string filename;
 
-       pthread_mutex_t mutex;
+       std::mutex mu;
        std::vector<ClientStats> pending_writes;
 };