summaryrefslogtreecommitdiff
path: root/seqWindow.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-22 16:49:55 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-22 16:49:55 +0000
commit7ca7a28a058b6644913f6e50eb944d657246ada0 (patch)
tree92ff77371cbcc98a0aa1149700f4d17f10b026fb /seqWindow.h
parentbroken makefile fixed (diff)
seqWindow test
Diffstat (limited to 'seqWindow.h')
-rw-r--r--seqWindow.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/seqWindow.h b/seqWindow.h
index 9fb88dd..77af418 100644
--- a/seqWindow.h
+++ b/seqWindow.h
@@ -32,7 +32,7 @@
#define _SEQ_WINDOW_H_
#include <map>
-#include <queue>
+#include <deque>
#include "threadUtils.hpp"
#include "datatypes.h"
@@ -40,13 +40,13 @@
class SeqWindow
{
public:
- typedef std::queue<seq_nr_t> SeqQueue;
- typedef std::map<sender_id_t, SeqQueue> SenderMap;
+ typedef std::deque<seq_nr_t> SeqDeque;
+ typedef std::map<sender_id_t, SeqDeque> SenderMap;
SeqWindow(window_size_t w);
~SeqWindow();
- SeqQueue::size_type getLength(sender_id_t sender);
+ SeqDeque::size_type getLength(sender_id_t sender);
bool hasSeqNr(sender_id_t sender, seq_nr_t seq);
void addSeqNr(sender_id_t sender, seq_nr_t seq);
void clear(sender_id_t sender);
@@ -58,7 +58,7 @@ private:
window_size_t window_size_;
Mutex mutex_;
- SenderMap sender;
+ SenderMap sender_;
};
#endif