aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/buffer_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/buffer_pool.cpp')
-rw-r--r--host/lib/transport/buffer_pool.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/transport/buffer_pool.cpp b/host/lib/transport/buffer_pool.cpp
index 971bbb75a..0fcebecb1 100644
--- a/host/lib/transport/buffer_pool.cpp
+++ b/host/lib/transport/buffer_pool.cpp
@@ -16,11 +16,21 @@
//
#include <uhd/transport/buffer_pool.hpp>
+#include <uhd/transport/zero_copy.hpp>
#include <boost/shared_array.hpp>
#include <vector>
using namespace uhd::transport;
+#ifdef UHD_TXRX_DEBUG_PRINTS
+/*
+ * This is the implementation for the static variable 's_buffer_count'
+ * located in uhd/transport/zero_copy.hpp.
+ * It is used in the managed_buffer class.
+ */
+boost::detail::atomic_count managed_buffer::s_buffer_count(0);
+#endif // UHD_TXRX_DEBUG_PRINTS
+
//! pad the byte count to a multiple of alignment
static size_t pad_to_boundary(const size_t bytes, const size_t alignment){
return bytes + (alignment - bytes)%alignment;