diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-01 17:51:26 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-01 17:51:26 -0700 |
commit | 212159ca3bc00d233464cd6f9f454e5ac6e08f88 (patch) | |
tree | 26ba4df4c4e692face9145c6cc1e77fff8056076 /host/include | |
parent | f78cae4911148470f1b5fbf2ff8ea795250419a1 (diff) | |
download | uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.tar.gz uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.tar.bz2 uhd-212159ca3bc00d233464cd6f9f454e5ac6e08f88.zip |
Implemented pirate thread, moved io impl details into io impl cpp file. Fixed bug in bounded buffer push with pop on full.
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; } } |