summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/tpb_thread_body.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/tpb_thread_body.cc')
-rw-r--r--gnuradio-runtime/lib/tpb_thread_body.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/tpb_thread_body.cc b/gnuradio-runtime/lib/tpb_thread_body.cc
index f6f09a9c3e..ea5d80a9dc 100644
--- a/gnuradio-runtime/lib/tpb_thread_body.cc
+++ b/gnuradio-runtime/lib/tpb_thread_body.cc
@@ -73,8 +73,10 @@ namespace gr {
else {
// If we don't have a handler but are building up messages,
// prune the queue from the front to keep memory in check.
- if(block->nmsgs(i.first) > max_nmsgs)
+ if(block->nmsgs(i.first) > max_nmsgs){
+ GR_LOG_WARN(LOG,"asynchronous message buffer overflowing, dropping message");
msg = block->delete_head_nowait(i.first);
+ }
}
}
@@ -121,8 +123,10 @@ namespace gr {
else {
// leave msg in queue if no handler is defined
// start dropping if we have too many
- if(block->nmsgs(i.first) > max_nmsgs)
+ if(block->nmsgs(i.first) > max_nmsgs){
+ GR_LOG_WARN(LOG,"asynchronous message buffer overflowing, dropping message");
msg = block->delete_head_nowait(i.first);
+ }
}
}
if (d->done()) {
@@ -152,8 +156,10 @@ namespace gr {
else {
// leave msg in queue if no handler is defined
// start dropping if we have too many
- if(block->nmsgs(i.first) > max_nmsgs)
+ if(block->nmsgs(i.first) > max_nmsgs){
+ GR_LOG_WARN(LOG,"asynchronous message buffer overflowing, dropping message");
msg = block->delete_head_nowait(i.first);
+ }
}
}
}