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 --- syncBuffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'syncBuffer.h') diff --git a/syncBuffer.h b/syncBuffer.h index 1bae2a3..3fdca05 100644 --- a/syncBuffer.h +++ b/syncBuffer.h @@ -36,6 +36,7 @@ #include "buffer.h" #include #include "datatypes.h" +#include "threadUtils.hpp" class SyncBuffer : public Buffer { @@ -46,10 +47,13 @@ public: SyncBuffer(u_int8_t* data, u_int32_t length): Buffer(data,length) {}; SyncBuffer(const SyncBuffer & src) : Buffer(src) {}; private: +//TODO check if this is ok +// Mutex mutex_; friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { +// Lock lock(mutex_); ar & length_; for(u_int32_t i = 0; i < length_; i++) ar & (*this)[i]; -- cgit v1.2.3