diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-01 05:58:50 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-01 05:58:50 +0000 |
| commit | 7de71198a292c7b0a533abe4f950a4e8c7ec3c97 (patch) | |
| tree | 238951152982033d683bb4b4537bdab6013e6469 /cpp/src/qpid/RefCounted.h | |
| parent | 61bcb10e8ffaf8f323c5fad84b1c154ad7842045 (diff) | |
| download | qpid-python-7de71198a292c7b0a533abe4f950a4e8c7ec3c97.tar.gz | |
Added qpid::sys::RefCountedMap: thread safe refcounted map of refcounted entries.
- Entries are atomically erased when released.
- Map is released when all entries are erased.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@590907 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/RefCounted.h')
| -rw-r--r-- | cpp/src/qpid/RefCounted.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/RefCounted.h b/cpp/src/qpid/RefCounted.h index 790076b463..bcef69d21e 100644 --- a/cpp/src/qpid/RefCounted.h +++ b/cpp/src/qpid/RefCounted.h @@ -65,8 +65,8 @@ using boost::intrusive_ptr; // intrusive_ptr support. namespace boost { -void intrusive_ptr_add_ref(const qpid::AbstractRefCounted* p) { p->addRef(); } -void intrusive_ptr_release(const qpid::AbstractRefCounted* p) { p->release(); } +inline void intrusive_ptr_add_ref(const qpid::AbstractRefCounted* p) { p->addRef(); } +inline void intrusive_ptr_release(const qpid::AbstractRefCounted* p) { p->release(); } } |
