summaryrefslogtreecommitdiff
path: root/syncBuffer.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-26 11:57:10 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-26 11:57:10 +0000
commit38a06aa502da91cb17a960b462d639b4c7cf7726 (patch)
treecab2a37dccebf11b5649d18da16bb6cf2b6c4fd1 /syncBuffer.h
parentadded keygeneration at hmac calculation (diff)
added some Locks
Diffstat (limited to 'syncBuffer.h')
-rw-r--r--syncBuffer.h4
1 files changed, 4 insertions, 0 deletions
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 <iostream>
#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<class Archive>
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];