aboutsummaryrefslogtreecommitdiffstats
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-10-26 21:00:05 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-10-27 14:52:16 -0400
commitad768c5952d3d1e0eee8458b75ce699cd6e2b278 (patch)
tree20d1b5054bd65f0c8cdbe5633b3c3054e23a665c /gnuradio-runtime
parentSoapy: Make sure target uses expected C++ standard (diff)
downloadgnuradio-ad768c5952d3d1e0eee8458b75ce699cd6e2b278.tar.xz
gnuradio-ad768c5952d3d1e0eee8458b75ce699cd6e2b278.zip
runtime: remove unused d_mutex from custom_lock to remove warnings
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/include/gnuradio/custom_lock.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-runtime/include/gnuradio/custom_lock.h b/gnuradio-runtime/include/gnuradio/custom_lock.h
index b7f7183fb..179b01b06 100644
--- a/gnuradio-runtime/include/gnuradio/custom_lock.h
+++ b/gnuradio-runtime/include/gnuradio/custom_lock.h
@@ -50,7 +50,7 @@ class custom_lock
{
public:
explicit custom_lock(gr::thread::mutex& mutex, std::shared_ptr<custom_lock_if> locker)
- : d_mutex(mutex), d_lock(mutex), d_locker(locker)
+ : d_lock(mutex), d_locker(locker)
{
d_locker->on_lock(d_lock);
}
@@ -62,7 +62,6 @@ public:
custom_lock& operator=(custom_lock const&) = delete;
private:
- gr::thread::mutex& d_mutex;
gr::thread::scoped_lock d_lock;
std::shared_ptr<custom_lock_if> d_locker;
};