commit | 44b437547d70c808c5c7bc807bfc41764a99c309 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Jun 05 21:18:37 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Jun 05 21:18:37 2012 -0700 |
tree | b07e7a6e579268d85d2fe9be9db7f1657ffd27a2 | |
parent | 716addcf42043787ce9bf4337f122170fefc7883 [diff] [blame] |
add mutex for thread safety
diff --git a/chatdialog.h b/chatdialog.h index 312ebb0..e5e0c34 100644 --- a/chatdialog.h +++ b/chatdialog.h
@@ -1,6 +1,7 @@ #ifndef CHATDIALOG_H #define CHATDIALOG_H #include <boost/function.hpp> +#include <boost/thread/mutex.hpp> #include <vector> #include "digesttreescene.h" #include "ui_chatdialog.h" @@ -53,5 +54,7 @@ Sync::SyncAppSocket *m_sock; uint32_t m_session; DigestTreeScene *m_scene; + boost::mutex m_msgMutex; + boost::mutex m_sceneMutex; }; #endif