diff options
author | Kim van der Riet <kpvdr@apache.org> | 2012-06-11 18:07:45 +0000 |
---|---|---|
committer | Kim van der Riet <kpvdr@apache.org> | 2012-06-11 18:07:45 +0000 |
commit | 01174a9e568f11cd5aa4f22aaa914e00ab9fe163 (patch) | |
tree | 9ce51be9b6ddc0f648344d32a07f4b925eb75708 /cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp | |
parent | f9f2c6aae6514d0e279b95aaaf90195326738b66 (diff) | |
download | qpid-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.cpp')
-rw-r--r-- | cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp b/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp index a389f86739..4836f9358a 100644 --- a/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp +++ b/cpp/src/tests/storePerftools/asyncPerf/QueueAsyncContext.cpp @@ -22,6 +22,7 @@ */ #include "QueueAsyncContext.h" +#include "SimplePersistableMessage.h" #include <cassert> @@ -42,7 +43,7 @@ QueueAsyncContext::QueueAsyncContext(boost::shared_ptr<SimplePersistableQueue> q } QueueAsyncContext::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) : @@ -77,7 +78,7 @@ QueueAsyncContext::getQueue() const return m_q; } -boost::shared_ptr<SimplePersistableMessage> +boost::intrusive_ptr<SimplePersistableMessage> QueueAsyncContext::getMessage() const { return m_msg; |