summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/EventFrame.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-03-08 23:52:35 +0000
committerAlan Conway <aconway@apache.org>2009-03-08 23:52:35 +0000
commitbab8070ad7989386b11f4106d9f15e73d9246c1d (patch)
treedfca93bc4ca56de921c01f87e966855816744484 /cpp/src/qpid/cluster/EventFrame.h
parente14ed937f459d07735a5ed22636127fdf81dc88c (diff)
downloadqpid-python-bab8070ad7989386b11f4106d9f15e73d9246c1d.tar.gz
Fixed race conditions in cluster.
Execute all cluster logic in frameDeliverQueue thread, decoding only in eventDeliverQueue thread. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@751557 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/EventFrame.h')
-rw-r--r--cpp/src/qpid/cluster/EventFrame.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/cpp/src/qpid/cluster/EventFrame.h b/cpp/src/qpid/cluster/EventFrame.h
index bb2d9d5493..d6ff58dd38 100644
--- a/cpp/src/qpid/cluster/EventFrame.h
+++ b/cpp/src/qpid/cluster/EventFrame.h
@@ -47,16 +47,8 @@ struct EventFrame
bool isLastInEvent() const { return readCredit; }
- // True if this frame follows immediately after frame e.
- bool follows(const EventFrame& e) const {
- return eventId == e.eventId || (eventId == e.eventId+1 && e.readCredit);
- }
-
- bool operator<(const EventFrame& e) const { return eventId < e.eventId; }
-
ConnectionId connectionId;
framing::AMQFrame frame;
- uint64_t eventId;
int readCredit; ///< last frame in an event, give credit when processed.
EventType type;
};