summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/runtime
diff options
context:
space:
mode:
authorJosh Blum2013-06-11 15:04:51 -0700
committerJosh Blum2013-06-11 15:04:51 -0700
commit62402b122cd3f4f3fb80325771d6117f75798b11 (patch)
treec3560564ed73adbd212c18a2e96d4ef72ebaba09 /gnuradio-core/src/lib/runtime
parentf4fc952e58ce318298258926f7382ed28b92bfae (diff)
parent2b7292593d898d7ce9a851c7ae7f168f200ea1c1 (diff)
downloadgnuradio-62402b122cd3f4f3fb80325771d6117f75798b11.tar.gz
gnuradio-62402b122cd3f4f3fb80325771d6117f75798b11.tar.bz2
gnuradio-62402b122cd3f4f3fb80325771d6117f75798b11.zip
Merge branch 'v3.6.4_branch' into v3.6.4git_gras_support
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_detail.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block_detail.cc b/gnuradio-core/src/lib/runtime/gr_block_detail.cc
index af80e61cf..4922ea083 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_detail.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block_detail.cc
@@ -261,6 +261,7 @@ gr_block_detail::stop_perf_counters(int noutput_items, int nproduced)
d_var_input_buffers_full[i] = 0;
}
for(size_t i=0; i < d_output.size(); i++) {
+ gruel::scoped_lock guard(*d_output[i]->mutex());
float pfull = 1.0f - static_cast<float>(d_output[i]->space_available()) /
static_cast<float>(d_output[i]->bufsize());
d_avg_output_buffers_full[i] = pfull;
@@ -290,6 +291,7 @@ gr_block_detail::stop_perf_counters(int noutput_items, int nproduced)
}
for(size_t i=0; i < d_output.size(); i++) {
+ gruel::scoped_lock guard(*d_output[i]->mutex());
float pfull = 1.0f - static_cast<float>(d_output[i]->space_available()) /
static_cast<float>(d_output[i]->bufsize());