diff options
| author | Gordon Sim <gsim@apache.org> | 2007-09-28 15:06:12 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-09-28 15:06:12 +0000 |
| commit | b46c7467a0422e16f63f6b7d7fabb8d1ca9a2cff (patch) | |
| tree | ed896b93d4ebd1c7357fee7569c37564d913f999 /cpp/src/qpid/framing/AccumulatedAck.cpp | |
| parent | 816b56837d862980e9086fe8ed02b84ca764eb1f (diff) | |
| download | qpid-python-b46c7467a0422e16f63f6b7d7fabb8d1ca9a2cff.tar.gz | |
Minor refactoring of execution layer
Set sync bit when session is in sync mode
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@580380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AccumulatedAck.cpp')
| -rw-r--r-- | cpp/src/qpid/framing/AccumulatedAck.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/AccumulatedAck.cpp b/cpp/src/qpid/framing/AccumulatedAck.cpp index 9daae5494c..219a68b96c 100644 --- a/cpp/src/qpid/framing/AccumulatedAck.cpp +++ b/cpp/src/qpid/framing/AccumulatedAck.cpp @@ -100,6 +100,15 @@ void AccumulatedAck::collectRanges(SequenceNumberSet& set) const } } +void AccumulatedAck::update(const SequenceNumber cumulative, const SequenceNumberSet& range) +{ + update(mark, cumulative); + for (SequenceNumberSet::const_iterator i = range.begin(); i != range.end(); i++) { + update(*i, *(++i)); + } +} + + bool Range::contains(SequenceNumber i) const { return i >= start && i <= end; |
