Protecting sync log transaction with mutexes
diff --git a/src/sync-log.h b/src/sync-log.h
index d066991..3ab8489 100644
--- a/src/sync-log.h
+++ b/src/sync-log.h
@@ -26,6 +26,7 @@
 #include <sync-state.pb.h>
 #include <ccnx-name.h>
 #include <map>
+#include <boost/thread/shared_mutex.hpp>
 
 typedef boost::shared_ptr<SyncStateMsg> SyncStateMsgPtr;
 
@@ -83,6 +84,11 @@
   Ccnx::Name m_localName;
   
   sqlite3_int64 m_localDeviceId;
+
+  typedef boost::mutex Mutex;
+  typedef boost::unique_lock<Mutex> WriteLock;
+  
+  Mutex m_stateUpdateMutex;  
 };