summaryrefslogtreecommitdiff
path: root/seqWindow.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 /seqWindow.h
parentadded keygeneration at hmac calculation (diff)
added some Locks
Diffstat (limited to 'seqWindow.h')
-rw-r--r--seqWindow.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/seqWindow.h b/seqWindow.h
index f2ad347..3a629ee 100644
--- a/seqWindow.h
+++ b/seqWindow.h
@@ -55,6 +55,10 @@ public:
private:
+ window_size_t window_size_;
+ Mutex mutex_;
+ SenderMap sender_;
+
SeqWindow(const SeqWindow &s);
void operator=(const SeqWindow &s);
@@ -62,6 +66,7 @@ private:
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
+ Lock lock(mutex_);
//unsigned int serial = (unsigned int) window_size_;
//window_size_t serial = (window_size_t) window_size_;
ar & window_size_;
@@ -70,9 +75,6 @@ private:
}
- window_size_t window_size_;
- Mutex mutex_;
- SenderMap sender_;
};
#endif