From 38a06aa502da91cb17a960b462d639b4c7cf7726 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Wed, 26 Dec 2007 11:57:10 +0000 Subject: added some Locks --- syncCommand.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'syncCommand.h') diff --git a/syncCommand.h b/syncCommand.h index 6e1e3ea..c556cfb 100644 --- a/syncCommand.h +++ b/syncCommand.h @@ -4,6 +4,7 @@ #include #include "connectionList.h" +#include "threadUtils.hpp" class SyncCommand { @@ -13,12 +14,15 @@ public: u_int16_t getMux() const; private: + SyncCommand(const SyncCommand &); + ::Mutex mutex_; ConnectionList & cl_; u_int16_t mux_; friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { + Lock lock(mutex_); ar & mux_; ConnectionParam & conn = cl_.getOrNewConnection(mux_); ar & conn; -- cgit v1.2.3