diff options
| author | Alan Conway <aconway@apache.org> | 2007-09-28 17:53:16 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-09-28 17:53:16 +0000 |
| commit | 68c4615c9f0c37d3debfdace0c2169103cf9287d (patch) | |
| tree | 0217ca70a9acf96c810fc15ab888b56e888ca8d6 /cpp/src/qpid/client/Completion.h | |
| parent | 28b72367e7d93d51c34adf2e7a59da21b20e694d (diff) | |
| download | qpid-python-68c4615c9f0c37d3debfdace0c2169103cf9287d.tar.gz | |
Ensure no danbling pointers in client API:
- Session -shared_ptr-> SessionCore -shared_ptr-> ConnectionImpl
- Connection -shared_ptr-> ConnectionImpl
- ConnectionImpl -weak_ptr-> SessionCore
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@580440 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Completion.h')
| -rw-r--r-- | cpp/src/qpid/client/Completion.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Completion.h b/cpp/src/qpid/client/Completion.h index 68cff3f11a..a126bc9766 100644 --- a/cpp/src/qpid/client/Completion.h +++ b/cpp/src/qpid/client/Completion.h @@ -33,10 +33,10 @@ class Completion { protected: Future future; - SessionCore::shared_ptr session; + shared_ptr<SessionCore> session; public: - Completion(Future f, SessionCore::shared_ptr s) : future(f), session(s) {} + Completion(Future f, shared_ptr<SessionCore> s) : future(f), session(s) {} void sync() { |
