summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/bounded_buffer.ipp7
1 files changed, 3 insertions, 4 deletions
diff --git a/host/include/uhd/transport/bounded_buffer.ipp b/host/include/uhd/transport/bounded_buffer.ipp
index 466c7a306..7be2f987c 100644
--- a/host/include/uhd/transport/bounded_buffer.ipp
+++ b/host/include/uhd/transport/bounded_buffer.ipp
@@ -31,11 +31,10 @@ namespace uhd{ namespace transport{ namespace{ /*anon*/
public:
bounded_buffer_detail(size_t capacity):
- _buffer(capacity),
- _not_full_fcn(boost::bind(&bounded_buffer_detail<elem_type>::not_full, this)),
- _not_empty_fcn(boost::bind(&bounded_buffer_detail<elem_type>::not_empty, this))
+ _buffer(capacity)
{
- /* NOP */
+ _not_full_fcn = boost::bind(&bounded_buffer_detail<elem_type>::not_full, this);
+ _not_empty_fcn = boost::bind(&bounded_buffer_detail<elem_type>::not_empty, this);
}
UHD_INLINE bool push_with_pop_on_full(const elem_type &elem){