|
From: | Johnathan Corgan |
Subject: | Re: [Discuss-gnuradio] Proper use of scoped_lock in out-of-tree module? |
Date: | Tue, 2 Jul 2013 16:17:41 -0700 |
I see different use cases of this in the gnuradio tree, like:
gr::thread::scoped_lock guard(d_mutex);
gr::thread::scoped_lock l(d_mutex);
gr::thread::scoped_lock lock(d_setlock);
As well as variances of whether the mutex variable is declared in a header file...
Could someone lend some kind words on what is recommended (at least for GR 3.7)?
[Prev in Thread] | Current Thread | [Next in Thread] |