summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/vmcircbuf.cc
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-06-21 15:35:30 -0400
committerTom Rondeau <trondeau@vt.edu>2013-06-21 15:35:30 -0400
commit5653dcfb4f3a836523921e014d2aa50014514e58 (patch)
treebdbe789c59548acf491fe49e490ac188e8aa4276 /gnuradio-runtime/lib/vmcircbuf.cc
parentad1d52fd9911114ad8c9748e808b55de4e16232b (diff)
runtime: fixed checks on vmcircbuf file and mutex locking for creation and usage of vmcrcbuf classes.
Diffstat (limited to 'gnuradio-runtime/lib/vmcircbuf.cc')
-rw-r--r--gnuradio-runtime/lib/vmcircbuf.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/vmcircbuf.cc b/gnuradio-runtime/lib/vmcircbuf.cc
index 315d409c5d..ff5093d5c4 100644
--- a/gnuradio-runtime/lib/vmcircbuf.cc
+++ b/gnuradio-runtime/lib/vmcircbuf.cc
@@ -66,15 +66,13 @@ namespace gr {
bool verbose = false;
- gr::thread::scoped_lock guard(s_vm_mutex);
-
std::vector<gr::vmcircbuf_factory *> all = all_factories ();
const char *name = gr::vmcircbuf_prefs::get(FACTORY_PREF_KEY);
if(name) {
for(unsigned int i = 0; i < all.size (); i++) {
- if(strcmp(name, all[i]->name ()) == 0) {
+ if(strncmp(name, all[i]->name(), strlen(all[i]->name())) == 0) {
s_default_factory = all[i];
if(verbose)
fprintf(stderr, "gr::vmcircbuf_sysconfig: using %s\n",