diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/bounded_buffer.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/transport/bounded_buffer.hpp b/host/include/uhd/transport/bounded_buffer.hpp index cdec05849..baecd6382 100644 --- a/host/include/uhd/transport/bounded_buffer.hpp +++ b/host/include/uhd/transport/bounded_buffer.hpp @@ -57,10 +57,14 @@ namespace uhd{ namespace transport{ if(_buffer.full()){ _buffer.pop_back(); _buffer.push_front(elem); + lock.unlock(); + _empty_cond.notify_one(); return false; } else{ _buffer.push_front(elem); + lock.unlock(); + _empty_cond.notify_one(); return true; } } |