diff options
author | Alan Conway <aconway@apache.org> | 2007-11-14 21:02:14 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-11-14 21:02:14 +0000 |
commit | 19233146427526f3411fd115f0c7d6b21f097085 (patch) | |
tree | c9f441946250c09cc99c5329ec182bab039926f3 /qpid/cpp/src/qpid/broker/TxPublish.h | |
parent | 6f4dce11d203ec606650497fa64f1519ecdf43c3 (diff) | |
download | qpid-python-19233146427526f3411fd115f0c7d6b21f097085.tar.gz |
Replaced shared_ptr with intrusive_ptr for qpid::Broker::Message.
Gives 9% reduction in broker heap use (perftest --count 100000.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@595056 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/TxPublish.h')
-rw-r--r-- | qpid/cpp/src/qpid/broker/TxPublish.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qpid/cpp/src/qpid/broker/TxPublish.h b/qpid/cpp/src/qpid/broker/TxPublish.h index 2e3268010a..b4323864bc 100644 --- a/qpid/cpp/src/qpid/broker/TxPublish.h +++ b/qpid/cpp/src/qpid/broker/TxPublish.h @@ -45,24 +45,24 @@ namespace qpid { class TxPublish : public TxOp, public Deliverable{ class Prepare{ TransactionContext* ctxt; - Message::shared_ptr& msg; + intrusive_ptr<Message>& msg; public: - Prepare(TransactionContext* ctxt, Message::shared_ptr& msg); + Prepare(TransactionContext* ctxt, intrusive_ptr<Message>& msg); void operator()(Queue::shared_ptr& queue); }; class Commit{ - Message::shared_ptr& msg; + intrusive_ptr<Message>& msg; public: - Commit(Message::shared_ptr& msg); + Commit(intrusive_ptr<Message>& msg); void operator()(Queue::shared_ptr& queue); }; - Message::shared_ptr msg; + intrusive_ptr<Message> msg; std::list<Queue::shared_ptr> queues; public: - TxPublish(Message::shared_ptr msg); + TxPublish(intrusive_ptr<Message> msg); virtual bool prepare(TransactionContext* ctxt) throw(); virtual void commit() throw(); virtual void rollback() throw(); |