summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/pmt_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/pmt/pmt_int.h')
-rw-r--r--gnuradio-runtime/lib/pmt/pmt_int.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_int.h b/gnuradio-runtime/lib/pmt/pmt_int.h
index 49bde52063..f06f507944 100644
--- a/gnuradio-runtime/lib/pmt/pmt_int.h
+++ b/gnuradio-runtime/lib/pmt/pmt_int.h
@@ -24,7 +24,8 @@
#include <pmt/pmt.h>
#include <boost/utility.hpp>
-#include <boost/detail/atomic_count.hpp>
+#include <boost/version.hpp>
+#include <boost/atomic.hpp>
/*
* EVERYTHING IN THIS FILE IS PRIVATE TO THE IMPLEMENTATION!
@@ -36,10 +37,10 @@
namespace pmt {
class PMT_API pmt_base : boost::noncopyable {
- mutable boost::detail::atomic_count count_;
+ mutable boost::atomic<int> refcount_;
protected:
- pmt_base() : count_(0) {};
+ pmt_base() : refcount_(0) {};
virtual ~pmt_base();
public: