[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 12/18: runtime: tpb, don't check msg queue
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 12/18: runtime: tpb, don't check msg queue |
Date: |
Fri, 1 Jul 2016 16:25:45 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch next
in repository gnuradio.
commit 567f18f7cc750ffcfa6085548fe1a3fe2274c4b6
Author: Bastian Bloessl <address@hidden>
Date: Wed May 4 07:23:54 2016 +0200
runtime: tpb, don't check msg queue
---
gnuradio-runtime/lib/tpb_thread_body.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/gnuradio-runtime/lib/tpb_thread_body.cc
b/gnuradio-runtime/lib/tpb_thread_body.cc
index d49c088..610a13c 100644
--- a/gnuradio-runtime/lib/tpb_thread_body.cc
+++ b/gnuradio-runtime/lib/tpb_thread_body.cc
@@ -155,10 +155,7 @@ namespace gr {
{
gr::thread::scoped_lock guard(d->d_tpb.mutex);
while(!d->d_tpb.input_changed) {
- // wait for input or message
- if(!d->d_tpb.input_changed && block->empty_handled_p()) {
- d->d_tpb.input_cond.wait(guard);
- }
+ d->d_tpb.input_cond.wait(guard);
}
}
break;
@@ -168,7 +165,7 @@ namespace gr {
gr::thread::scoped_lock guard(d->d_tpb.mutex);
while(!d->d_tpb.output_changed) {
// wait for output room or message
- while(!d->d_tpb.output_changed && block->empty_handled_p())
+ while(!d->d_tpb.output_changed)
d->d_tpb.output_cond.wait(guard);
// handle all pending messages
- [Commit-gnuradio] [gnuradio] 08/18: runtime: block if message block doesn't produce, (continued)
- [Commit-gnuradio] [gnuradio] 08/18: runtime: block if message block doesn't produce, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 02/18: runtime: allow blocks w/ only msg inputs to exit, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 04/18: runtime: allow msg port block finish cleanly, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 06/18: runtime: use bool for system port message, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 03/18: runtime: set_done shouldn't be set in msg handlers, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 17/18: Merge branch 'master' into next, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 05/18: runtime: whitespace, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 01/18: runtime: remove unnecessary wakeup of neighbors, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 13/18: runtime: scheduler: check changed at beginning, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 16/18: runtime: poll blocks, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 12/18: runtime: tpb, don't check msg queue,
git <=
- [Commit-gnuradio] [gnuradio] 11/18: runtime: scheduler: no busy-waiting, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 14/18: runtime: scheduler: check for messages at start of iteration, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 09/18: blocks: don't block waiting for messages, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 15/18: runtime: del left-over from blocked out, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 18/18: Merge remote-tracking branch 'bastibl/shutdown' into next, git, 2016/07/01
- [Commit-gnuradio] [gnuradio] 10/18: runtime: delete blocking wait for message, git, 2016/07/01