diff options
| author | Alan Conway <aconway@apache.org> | 2013-10-29 15:23:36 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-10-29 15:23:36 +0000 |
| commit | 4a3eb469d5eb8c97c719c70e42814cd703e12fbd (patch) | |
| tree | 5fefbf7b5c2f327275c8bd929ed83281ec54114d /cpp/src/qpid/broker/DtxManager.cpp | |
| parent | fd23db50312860de7585001588fae44b4f8e9480 (diff) | |
| download | qpid-python-4a3eb469d5eb8c97c719c70e42814cd703e12fbd.tar.gz | |
QPID-5139: Make TxBuffer inherit from AsyncCompletion.
Switched from shared_ptr to intrusive_ptr for TxBuffer and DtxBuffer.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1536752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DtxManager.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/DtxManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/DtxManager.cpp b/cpp/src/qpid/broker/DtxManager.cpp index 5233e07b2b..5ba1ce4dac 100644 --- a/cpp/src/qpid/broker/DtxManager.cpp +++ b/cpp/src/qpid/broker/DtxManager.cpp @@ -66,17 +66,17 @@ DtxManager::DtxManager(qpid::sys::Timer& t) : store(0), timer(&t) {} DtxManager::~DtxManager() {} -void DtxManager::start(const std::string& xid, DtxBuffer::shared_ptr ops) +void DtxManager::start(const std::string& xid, boost::intrusive_ptr<DtxBuffer> ops) { createWork(xid)->add(ops); } -void DtxManager::join(const std::string& xid, DtxBuffer::shared_ptr ops) +void DtxManager::join(const std::string& xid, boost::intrusive_ptr<DtxBuffer> ops) { getWork(xid)->add(ops); } -void DtxManager::recover(const std::string& xid, std::auto_ptr<TPCTransactionContext> txn, DtxBuffer::shared_ptr ops) +void DtxManager::recover(const std::string& xid, std::auto_ptr<TPCTransactionContext> txn, boost::intrusive_ptr<DtxBuffer> ops) { createWork(xid)->recover(txn, ops); } |
