summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/RefCounted.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-01 05:58:50 +0000
committerAlan Conway <aconway@apache.org>2007-11-01 05:58:50 +0000
commit7de71198a292c7b0a533abe4f950a4e8c7ec3c97 (patch)
tree238951152982033d683bb4b4537bdab6013e6469 /cpp/src/qpid/RefCounted.h
parent61bcb10e8ffaf8f323c5fad84b1c154ad7842045 (diff)
downloadqpid-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.h4
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(); }
}