summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/PersistableMessage.h
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-11-06 19:43:54 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-11-06 19:43:54 +0000
commit58787c964e568f363915844ee54f19b2b0f80940 (patch)
tree49d4beacc8efb7424a9dee5e16b7f73ee41e02f4 /cpp/src/qpid/broker/PersistableMessage.h
parenta2ded139f371d273afa858f49a5b7f6e0efc2394 (diff)
downloadqpid-python-58787c964e568f363915844ee54f19b2b0f80940.tar.gz
- clean up between base & subclasses
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592530 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/PersistableMessage.h')
-rw-r--r--cpp/src/qpid/broker/PersistableMessage.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/PersistableMessage.h b/cpp/src/qpid/broker/PersistableMessage.h
index d8bcc70a30..a63ca2a52b 100644
--- a/cpp/src/qpid/broker/PersistableMessage.h
+++ b/cpp/src/qpid/broker/PersistableMessage.h
@@ -66,6 +66,10 @@ protected:
typedef std::list<PersistableQueue*> syncList;
syncList synclist;
MessageStore* store;
+ bool contentReleased;
+
+ inline void setContentReleased() {contentReleased = true; }
+
public:
typedef boost::shared_ptr<PersistableMessage> shared_ptr;
@@ -79,11 +83,14 @@ public:
PersistableMessage():
asyncEnqueueCounter(0),
asyncDequeueCounter(0),
- store(0)
+ store(0),
+ contentReleased(false)
{}
void flush();
+ inline bool isContentReleased()const {return contentReleased; }
+
inline void waitForEnqueueComplete() {
sys::ScopedLock<sys::Monitor> l(asyncEnqueueLock);
while (asyncEnqueueCounter > 0) {