]> git.sesse.net Git - cubemap/blobdiff - httpinput.h
Use C++11 std::mutex and std::lock_guard instead of our RAII wrapper.
[cubemap] / httpinput.h
index ac52bfc34b019e91fa58dc688306d872695ca7f8..31819f947ec54f4e225e95609e6fb86562867898 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef _HTTPINPUT_H
 #define _HTTPINPUT_H 1
 
-#include <pthread.h>
 #include <stddef.h>
+#include <mutex>
 #include <string>
 #include <vector>
 
@@ -93,7 +93,7 @@ private:
        int sock = -1;
 
        // Mutex protecting <stats>.
-       mutable pthread_mutex_t stats_mutex;
+       mutable std::mutex stats_mutex;
 
        // The current statistics for this connection. Protected by <stats_mutex>.
        InputStats stats;