summaryrefslogtreecommitdiff
path: root/gruel/src/lib/pmt/pmt.cc
diff options
context:
space:
mode:
authorJohnathan Corgan2009-08-14 14:04:11 -0700
committerJohnathan Corgan2009-08-14 14:04:11 -0700
commitad36dccd88eafec6efb8f2428fb21f54d6894cfc (patch)
tree83b1cbfcc13c0cdba638dcc203fcf466fd17d6b9 /gruel/src/lib/pmt/pmt.cc
parentab3b6e3057244259d333513c133450e9efc4dc1b (diff)
downloadgnuradio-ad36dccd88eafec6efb8f2428fb21f54d6894cfc.tar.gz
gnuradio-ad36dccd88eafec6efb8f2428fb21f54d6894cfc.tar.bz2
gnuradio-ad36dccd88eafec6efb8f2428fb21f54d6894cfc.zip
Applied patch c1258.diff from Stephan Bruns (ticket:359)
This patch changes pmt_t to use boost intrusive pointers. Patch was modified to apply to new pmt location since the original patch was created, and add missing include file. Signed-off-by: Johnathan Corgan <jcorgan@corganenterprises.com>
Diffstat (limited to 'gruel/src/lib/pmt/pmt.cc')
-rw-r--r--gruel/src/lib/pmt/pmt.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gruel/src/lib/pmt/pmt.cc b/gruel/src/lib/pmt/pmt.cc
index fbf557be1..fd4035f75 100644
--- a/gruel/src/lib/pmt/pmt.cc
+++ b/gruel/src/lib/pmt/pmt.cc
@@ -56,6 +56,8 @@ pmt_base::operator delete(void *p, size_t size)
#endif
+void intrusive_ptr_add_ref(pmt_base* p) { ++(p->count_); }
+void intrusive_ptr_release(pmt_base* p) { if (--(p->count_) == 0 ) delete p; }
pmt_base::~pmt_base()
{