diff options
author | Tom Rondeau | 2012-04-04 22:08:10 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-04-04 22:08:10 -0400 |
commit | a66a650a1f39118500434bc9c91b2ade24887149 (patch) | |
tree | b90b341e42a776432053a54740ca7ce9e7e945e6 /gruel/src/lib/pmt/pmt_int.h | |
parent | fd52df0f706195d937e287189024f8aa6fbeaf60 (diff) | |
parent | b711a8683c8c4578c7a4ff0f3664f1321da1dcad (diff) | |
download | gnuradio-a66a650a1f39118500434bc9c91b2ade24887149.tar.gz gnuradio-a66a650a1f39118500434bc9c91b2ade24887149.tar.bz2 gnuradio-a66a650a1f39118500434bc9c91b2ade24887149.zip |
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'gruel/src/lib/pmt/pmt_int.h')
-rw-r--r-- | gruel/src/lib/pmt/pmt_int.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gruel/src/lib/pmt/pmt_int.h b/gruel/src/lib/pmt/pmt_int.h index 3a5cd382b..745dbc666 100644 --- a/gruel/src/lib/pmt/pmt_int.h +++ b/gruel/src/lib/pmt/pmt_int.h @@ -38,8 +38,15 @@ namespace pmt { class GRUEL_API pmt_base : boost::noncopyable { mutable boost::detail::atomic_count count_; +public: + static void default_deleter(pmt_base *p){ + delete p; + } + + boost::function<void(pmt_base *)> deleter_; + protected: - pmt_base() : count_(0) {}; + pmt_base() : count_(0), deleter_(&pmt::pmt_base::default_deleter) {}; virtual ~pmt_base(); public: |