summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-03-19 17:50:13 +0100
committerMarcus Müller <marcus@hostalia.de>2021-03-20 18:45:55 +0100
commitf3f4055ebd0c69634ddd40a322b7c4a1853647e7 (patch)
treed3187ba77f5d0498632350b2ca6cea86ce594386
parent98c84cee03e7f797fe688dc4d2e1b4648712f1cf (diff)
thrift: replace ::bind with lambda
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r--gnuradio-runtime/include/gnuradio/thrift_application_base.h4
-rw-r--r--gnuradio-runtime/python/gnuradio/gr/bindings/thrift_application_base_python.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/include/gnuradio/thrift_application_base.h b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
index 370e50eabf..1d52e3901a 100644
--- a/gnuradio-runtime/include/gnuradio/thrift_application_base.h
+++ b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
@@ -202,8 +202,8 @@ void thrift_application_base<TserverBase, TserverClass>::start_application()
"thrift", "init_attempts", d_default_max_init_attempts));
if (!p_impl->d_application_initialized) {
- p_impl->d_start_thrift_thread.reset((new gr::thread::thread(
- boost::bind(&thrift_application_base::start_thrift, d_application))));
+ p_impl->d_start_thrift_thread.reset(
+ (new gr::thread::thread([app = d_application] { app->start_thrift(); })));
bool app_started(false);
for (unsigned int attempts(0); (!app_started && attempts < max_init_attempts);
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/thrift_application_base_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/thrift_application_base_python.cc
index b7e5fa0f23..46f78f7fd0 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/thrift_application_base_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/thrift_application_base_python.cc
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(thrift_application_base.h) */
-/* BINDTOOL_HEADER_FILE_HASH(6308813ad7a4fccf1d2baa9ab79a8634) */
+/* BINDTOOL_HEADER_FILE_HASH(a27f23a8d3fc9fff2ecc054d43abbcaa) */
/***********************************************************************************/
#include <pybind11/complex.h>