]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.h
Use std::lock_guard instead of STG_LOCKER.
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.h
index b4a1c5e8718779f807710749f400fae3cb58c9fd..7b2e9604656e77ed5d54b996303af10aa7e45a01 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <string>
 #include <vector>
+#include <mutex>
 
 #include <libpq-fe.h>
 
@@ -148,7 +149,7 @@ class POSTGRESQL_STORE : public STG::Store
         std::string password;
         std::string clientEncoding;
         STG::ModuleSettings settings;
-        mutable pthread_mutex_t mutex;
+        mutable std::mutex m_mutex;
         mutable int version;
         int retries;