From 212159ca3bc00d233464cd6f9f454e5ac6e08f88 Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Tue, 1 Jun 2010 17:51:26 -0700
Subject: Implemented pirate thread, moved io impl details into io impl cpp
 file. Fixed bug in bounded buffer push with pop on full.

---
 host/include/uhd/transport/bounded_buffer.hpp | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'host/include')

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;
             }
         }
-- 
cgit v1.2.3