replace lock with lock_guard
Change-Id: I778fd472546a0287f068f04569a67315045ee901
diff --git a/src/chatroom-discovery-backend.hpp b/src/chatroom-discovery-backend.hpp
index 986c3a1..b3f809f 100644
--- a/src/chatroom-discovery-backend.hpp
+++ b/src/chatroom-discovery-backend.hpp
@@ -11,14 +11,14 @@
#ifndef CHRONOCHAT_CHATROOM_DISCOVERY_BACKEND_HPP
#define CHRONOCHAT_CHATROOM_DISCOVERY_BACKEND_HPP
-#include <ndn-cxx/util/scheduler.hpp>
-#include <boost/random.hpp>
#include <QThread>
-#include <QMutex>
#ifndef Q_MOC_RUN
#include "common.hpp"
#include "chatroom-info.hpp"
+#include <ndn-cxx/util/scheduler.hpp>
+#include <boost/random.hpp>
+#include <mutex>
#include <socket.hpp>
#endif
@@ -224,7 +224,7 @@
shared_ptr<chronosync::Socket> m_sock; // SyncSocket
ChatroomList m_chatroomList;
- QMutex m_mutex;
+ std::mutex m_mutex;
bool m_shouldResume;
};