summaryrefslogtreecommitdiff
path: root/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2012-06-11 18:07:45 +0000
committerKim van der Riet <kpvdr@apache.org>2012-06-11 18:07:45 +0000
commit01174a9e568f11cd5aa4f22aaa914e00ab9fe163 (patch)
tree9ce51be9b6ddc0f648344d32a07f4b925eb75708 /cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h
parentf9f2c6aae6514d0e279b95aaaf90195326738b66 (diff)
downloadqpid-python-01174a9e568f11cd5aa4f22aaa914e00ab9fe163.tar.gz
QPID-3858: WIP: Changed all boost::shared_ptr<SimplePersistableMessage> to boost_intrusive_ptr<SimplePersistableMessage> to better match broker message usage patterns.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1348950 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h')
-rw-r--r--cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h b/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h
index 982aef3874..df45117fe4 100644
--- a/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h
+++ b/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.h
@@ -27,10 +27,10 @@
#include "qpid/asyncStore/AsyncOperation.h"
#include "qpid/broker/AsyncStore.h"
+#include <boost/intrusive_ptr.hpp>
#include <boost/shared_ptr.hpp>
-
namespace tests {
namespace storePerftools {
namespace asyncPerf {
@@ -46,7 +46,7 @@ public:
qpid::broker::AsyncResultCallback rcb,
qpid::broker::AsyncResultQueue* const arq);
QueueAsyncContext(boost::shared_ptr<SimplePersistableQueue> q,
- boost::shared_ptr<SimplePersistableMessage> msg,
+ boost::intrusive_ptr<SimplePersistableMessage> msg,
const qpid::asyncStore::AsyncOperation::opCode op,
qpid::broker::AsyncResultCallback rcb,
qpid::broker::AsyncResultQueue* const arq);
@@ -54,7 +54,7 @@ public:
qpid::asyncStore::AsyncOperation::opCode getOpCode() const;
const char* getOpStr() const;
boost::shared_ptr<SimplePersistableQueue> getQueue() const;
- boost::shared_ptr<SimplePersistableMessage> getMessage() const;
+ boost::intrusive_ptr<SimplePersistableMessage> getMessage() const;
qpid::broker::AsyncResultQueue* getAsyncResultQueue() const;
qpid::broker::AsyncResultCallback getAsyncResultCallback() const;
void invokeCallback(const qpid::broker::AsyncResultHandle* const arh) const;
@@ -62,7 +62,7 @@ public:
private:
boost::shared_ptr<SimplePersistableQueue> m_q;
- boost::shared_ptr<SimplePersistableMessage> m_msg;
+ boost::intrusive_ptr<SimplePersistableMessage> m_msg;
const qpid::asyncStore::AsyncOperation::opCode m_op;
qpid::broker::AsyncResultCallback m_rcb;
qpid::broker::AsyncResultQueue* const m_arq;