1 |
commit: 2cfe198c28a8a67d9fbf188ecb37d6506304fad5 |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Thu Jun 17 18:27:11 2021 +0000 |
4 |
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 14:19:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cfe198c |
7 |
|
8 |
net-wireless/gnuradio: remove unused patch(es) |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> |
13 |
|
14 |
.../gnuradio/files/gnuradio-3.8.2.0-3967.patch | 58 ---- |
15 |
.../files/gnuradio-3.8.2.0-lamda-gr-qtgui.patch | 250 ----------------- |
16 |
.../files/gnuradio-3.8.2.0-lamda-gr-uhd.patch | 98 ------- |
17 |
.../gnuradio-3.8.2.0-lamda-most-components.patch | 290 -------------------- |
18 |
.../gnuradio-3.8.2.0-lamda-set-msg-handlers.patch | 298 --------------------- |
19 |
5 files changed, 994 deletions(-) |
20 |
|
21 |
diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch |
22 |
deleted file mode 100644 |
23 |
index bee81049e24..00000000000 |
24 |
--- a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch |
25 |
+++ /dev/null |
26 |
@@ -1,58 +0,0 @@ |
27 |
-From cbcb968358fad56f3646619b258f18b0e6693a07 Mon Sep 17 00:00:00 2001 |
28 |
-From: Jeff Long <willcode4@×××××.com> |
29 |
-Date: Wed, 25 Nov 2020 09:44:55 -0500 |
30 |
-Subject: [PATCH 1/2] Boost placeholder scope required (using |
31 |
- boost::placeholders) |
32 |
- |
33 |
---- |
34 |
- gnuradio-runtime/include/gnuradio/basic_block.h | 2 +- |
35 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
- |
37 |
-diff --git a/gnuradio-runtime/include/gnuradio/basic_block.h b/gnuradio-runtime/include/gnuradio/basic_block.h |
38 |
-index 1d31e2e9b8..0aace8f38d 100644 |
39 |
---- a/gnuradio-runtime/include/gnuradio/basic_block.h |
40 |
-+++ b/gnuradio-runtime/include/gnuradio/basic_block.h |
41 |
-@@ -41,7 +41,7 @@ |
42 |
- #include <gnuradio/rpcregisterhelpers.h> |
43 |
- |
44 |
- namespace gr { |
45 |
-- |
46 |
-+using namespace boost::placeholders; |
47 |
- /*! |
48 |
- * \brief The abstract base class for all signal processing blocks. |
49 |
- * \ingroup internal |
50 |
- |
51 |
-From 951b16756934f28bc3da4b3c442651b2fbe79b05 Mon Sep 17 00:00:00 2001 |
52 |
-From: Jeff Long <willcode4@×××××.com> |
53 |
-Date: Wed, 25 Nov 2020 11:05:56 -0500 |
54 |
-Subject: [PATCH 2/2] boost bind: make placeholder namespace conditional on |
55 |
- boost version |
56 |
- |
57 |
---- |
58 |
- gnuradio-runtime/include/gnuradio/basic_block.h | 5 +++++ |
59 |
- 1 file changed, 5 insertions(+) |
60 |
- |
61 |
-diff --git a/gnuradio-runtime/include/gnuradio/basic_block.h b/gnuradio-runtime/include/gnuradio/basic_block.h |
62 |
-index 0aace8f38d..c57c1cf553 100644 |
63 |
---- a/gnuradio-runtime/include/gnuradio/basic_block.h |
64 |
-+++ b/gnuradio-runtime/include/gnuradio/basic_block.h |
65 |
-@@ -33,6 +33,9 @@ |
66 |
- #include <boost/foreach.hpp> |
67 |
- #include <boost/function.hpp> |
68 |
- #include <boost/thread/condition_variable.hpp> |
69 |
-+#if (BOOST_VERSION >= 106000) |
70 |
-+#include <boost/bind/bind.hpp> |
71 |
-+#endif |
72 |
- #include <deque> |
73 |
- #include <iostream> |
74 |
- #include <map> |
75 |
-@@ -41,7 +44,9 @@ |
76 |
- #include <gnuradio/rpcregisterhelpers.h> |
77 |
- |
78 |
- namespace gr { |
79 |
-+#if (BOOST_VERSION >= 106000) |
80 |
- using namespace boost::placeholders; |
81 |
-+#endif |
82 |
- /*! |
83 |
- * \brief The abstract base class for all signal processing blocks. |
84 |
- * \ingroup internal |
85 |
|
86 |
diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-qtgui.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-qtgui.patch |
87 |
deleted file mode 100644 |
88 |
index 0057b38836c..00000000000 |
89 |
--- a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-qtgui.patch |
90 |
+++ /dev/null |
91 |
@@ -1,250 +0,0 @@ |
92 |
-From faa5e19e15f77a0ba5e7f854df6517c280034369 Mon Sep 17 00:00:00 2001 |
93 |
-From: Johannes Demel <demel@××××××××××××××.de> |
94 |
-Date: Sat, 9 May 2020 15:28:58 +0200 |
95 |
-Subject: [PATCH] msg_handler: Use lambdas in gr-qtgui |
96 |
- |
97 |
-gr-qtgui uses lambdas instead of `boost::bind` to register message |
98 |
-handlers now. This component makes quite heavy use of message handlers. |
99 |
---- |
100 |
- gr-qtgui/lib/const_sink_c_impl.cc | 3 +-- |
101 |
- gr-qtgui/lib/edit_box_msg_impl.cc | 2 +- |
102 |
- gr-qtgui/lib/freq_sink_c_impl.cc | 6 +++--- |
103 |
- gr-qtgui/lib/freq_sink_f_impl.cc | 6 +++--- |
104 |
- gr-qtgui/lib/histogram_sink_f_impl.cc | 3 +-- |
105 |
- gr-qtgui/lib/sink_c_impl.cc | 2 +- |
106 |
- gr-qtgui/lib/sink_f_impl.cc | 2 +- |
107 |
- gr-qtgui/lib/time_raster_sink_b_impl.cc | 3 +-- |
108 |
- gr-qtgui/lib/time_raster_sink_f_impl.cc | 3 +-- |
109 |
- gr-qtgui/lib/time_sink_c_impl.cc | 2 +- |
110 |
- gr-qtgui/lib/time_sink_f_impl.cc | 2 +- |
111 |
- gr-qtgui/lib/waterfall_sink_c_impl.cc | 9 +++------ |
112 |
- gr-qtgui/lib/waterfall_sink_f_impl.cc | 9 +++------ |
113 |
- 13 files changed, 21 insertions(+), 31 deletions(-) |
114 |
- |
115 |
-diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc |
116 |
-index 852f6ee109..e4b01907f1 100644 |
117 |
---- a/gr-qtgui/lib/const_sink_c_impl.cc |
118 |
-+++ b/gr-qtgui/lib/const_sink_c_impl.cc |
119 |
-@@ -69,8 +69,7 @@ const_sink_c_impl::const_sink_c_impl(int size, |
120 |
- |
121 |
- // setup PDU handling input port |
122 |
- message_port_register_in(pmt::mp("in")); |
123 |
-- set_msg_handler(pmt::mp("in"), |
124 |
-- boost::bind(&const_sink_c_impl::handle_pdus, this, _1)); |
125 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
126 |
- |
127 |
- for (int i = 0; i < d_nconnections; i++) { |
128 |
- d_residbufs_real.push_back( |
129 |
-diff --git a/gr-qtgui/lib/edit_box_msg_impl.cc b/gr-qtgui/lib/edit_box_msg_impl.cc |
130 |
-index 8713aa820e..04f860785a 100644 |
131 |
---- a/gr-qtgui/lib/edit_box_msg_impl.cc |
132 |
-+++ b/gr-qtgui/lib/edit_box_msg_impl.cc |
133 |
-@@ -158,7 +158,7 @@ edit_box_msg_impl::edit_box_msg_impl(data_type_t type, |
134 |
- message_port_register_out(d_port); |
135 |
- message_port_register_in(pmt::mp("val")); |
136 |
- |
137 |
-- set_msg_handler(pmt::mp("val"), boost::bind(&edit_box_msg_impl::set_value, this, _1)); |
138 |
-+ set_msg_handler(pmt::mp("val"), [this](pmt::pmt_t msg) { this->set_value(msg); }); |
139 |
- } |
140 |
- |
141 |
- edit_box_msg_impl::~edit_box_msg_impl() |
142 |
-diff --git a/gr-qtgui/lib/freq_sink_c_impl.cc b/gr-qtgui/lib/freq_sink_c_impl.cc |
143 |
-index 3a34df6ec6..137bccc3c3 100644 |
144 |
---- a/gr-qtgui/lib/freq_sink_c_impl.cc |
145 |
-+++ b/gr-qtgui/lib/freq_sink_c_impl.cc |
146 |
-@@ -82,17 +82,17 @@ freq_sink_c_impl::freq_sink_c_impl(int fftsize, |
147 |
- |
148 |
- // setup bw input port |
149 |
- message_port_register_in(d_port_bw); |
150 |
-- set_msg_handler(d_port_bw, boost::bind(&freq_sink_c_impl::handle_set_bw, this, _1)); |
151 |
-+ set_msg_handler(d_port_bw, [this](pmt::pmt_t msg) { this->handle_set_bw(msg); }); |
152 |
- |
153 |
- // setup output message port to post frequency when display is |
154 |
- // double-clicked |
155 |
- message_port_register_out(d_port); |
156 |
- message_port_register_in(d_port); |
157 |
-- set_msg_handler(d_port, boost::bind(&freq_sink_c_impl::handle_set_freq, this, _1)); |
158 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
159 |
- |
160 |
- // setup PDU handling input port |
161 |
- message_port_register_in(pmt::mp("in")); |
162 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&freq_sink_c_impl::handle_pdus, this, _1)); |
163 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
164 |
- |
165 |
- d_main_gui = NULL; |
166 |
- |
167 |
-diff --git a/gr-qtgui/lib/freq_sink_f_impl.cc b/gr-qtgui/lib/freq_sink_f_impl.cc |
168 |
-index c14bfc31fd..0b1757c03c 100644 |
169 |
---- a/gr-qtgui/lib/freq_sink_f_impl.cc |
170 |
-+++ b/gr-qtgui/lib/freq_sink_f_impl.cc |
171 |
-@@ -82,17 +82,17 @@ freq_sink_f_impl::freq_sink_f_impl(int fftsize, |
172 |
- |
173 |
- // setup bw input port |
174 |
- message_port_register_in(d_port_bw); |
175 |
-- set_msg_handler(d_port_bw, boost::bind(&freq_sink_f_impl::handle_set_bw, this, _1)); |
176 |
-+ set_msg_handler(d_port_bw, [this](pmt::pmt_t msg) { this->handle_set_bw(msg); }); |
177 |
- |
178 |
- // setup output message port to post frequency when display is |
179 |
- // double-clicked |
180 |
- message_port_register_out(d_port); |
181 |
- message_port_register_in(d_port); |
182 |
-- set_msg_handler(d_port, boost::bind(&freq_sink_f_impl::handle_set_freq, this, _1)); |
183 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
184 |
- |
185 |
- // setup PDU handling input port |
186 |
- message_port_register_in(pmt::mp("in")); |
187 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&freq_sink_f_impl::handle_pdus, this, _1)); |
188 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
189 |
- |
190 |
- d_main_gui = NULL; |
191 |
- |
192 |
-diff --git a/gr-qtgui/lib/histogram_sink_f_impl.cc b/gr-qtgui/lib/histogram_sink_f_impl.cc |
193 |
-index d16de932ca..fd357bf40a 100644 |
194 |
---- a/gr-qtgui/lib/histogram_sink_f_impl.cc |
195 |
-+++ b/gr-qtgui/lib/histogram_sink_f_impl.cc |
196 |
-@@ -81,8 +81,7 @@ histogram_sink_f_impl::histogram_sink_f_impl(int size, |
197 |
- |
198 |
- // setup PDU handling input port |
199 |
- message_port_register_in(pmt::mp("in")); |
200 |
-- set_msg_handler(pmt::mp("in"), |
201 |
-- boost::bind(&histogram_sink_f_impl::handle_pdus, this, _1)); |
202 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
203 |
- |
204 |
- // +1 for the PDU buffer |
205 |
- for (int i = 0; i < d_nconnections + 1; i++) { |
206 |
-diff --git a/gr-qtgui/lib/sink_c_impl.cc b/gr-qtgui/lib/sink_c_impl.cc |
207 |
-index d3feb9d16c..8f7ff36ba2 100644 |
208 |
---- a/gr-qtgui/lib/sink_c_impl.cc |
209 |
-+++ b/gr-qtgui/lib/sink_c_impl.cc |
210 |
-@@ -96,7 +96,7 @@ sink_c_impl::sink_c_impl(int fftsize, |
211 |
- // double-clicked |
212 |
- message_port_register_out(d_port); |
213 |
- message_port_register_in(d_port); |
214 |
-- set_msg_handler(d_port, boost::bind(&sink_c_impl::handle_set_freq, this, _1)); |
215 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
216 |
- |
217 |
- d_main_gui = NULL; |
218 |
- |
219 |
-diff --git a/gr-qtgui/lib/sink_f_impl.cc b/gr-qtgui/lib/sink_f_impl.cc |
220 |
-index 418b630b78..0b1eccad12 100644 |
221 |
---- a/gr-qtgui/lib/sink_f_impl.cc |
222 |
-+++ b/gr-qtgui/lib/sink_f_impl.cc |
223 |
-@@ -95,7 +95,7 @@ sink_f_impl::sink_f_impl(int fftsize, |
224 |
- // double-clicked |
225 |
- message_port_register_out(d_port); |
226 |
- message_port_register_in(d_port); |
227 |
-- set_msg_handler(d_port, boost::bind(&sink_f_impl::handle_set_freq, this, _1)); |
228 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
229 |
- |
230 |
- d_main_gui = NULL; |
231 |
- |
232 |
-diff --git a/gr-qtgui/lib/time_raster_sink_b_impl.cc b/gr-qtgui/lib/time_raster_sink_b_impl.cc |
233 |
-index 045c216b00..063ed09d0c 100644 |
234 |
---- a/gr-qtgui/lib/time_raster_sink_b_impl.cc |
235 |
-+++ b/gr-qtgui/lib/time_raster_sink_b_impl.cc |
236 |
-@@ -83,8 +83,7 @@ time_raster_sink_b_impl::time_raster_sink_b_impl(double samp_rate, |
237 |
- |
238 |
- // setup PDU handling input port |
239 |
- message_port_register_in(pmt::mp("in")); |
240 |
-- set_msg_handler(pmt::mp("in"), |
241 |
-- boost::bind(&time_raster_sink_b_impl::handle_pdus, this, _1)); |
242 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
243 |
- |
244 |
- d_scale = 1.0f; |
245 |
- |
246 |
-diff --git a/gr-qtgui/lib/time_raster_sink_f_impl.cc b/gr-qtgui/lib/time_raster_sink_f_impl.cc |
247 |
-index d186f319da..df94d217bd 100644 |
248 |
---- a/gr-qtgui/lib/time_raster_sink_f_impl.cc |
249 |
-+++ b/gr-qtgui/lib/time_raster_sink_f_impl.cc |
250 |
-@@ -83,8 +83,7 @@ time_raster_sink_f_impl::time_raster_sink_f_impl(double samp_rate, |
251 |
- |
252 |
- // setup PDU handling input port |
253 |
- message_port_register_in(pmt::mp("in")); |
254 |
-- set_msg_handler(pmt::mp("in"), |
255 |
-- boost::bind(&time_raster_sink_f_impl::handle_pdus, this, _1)); |
256 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
257 |
- |
258 |
- d_icols = static_cast<int>(ceil(d_cols)); |
259 |
- d_tmpflt = (float*)volk_malloc(d_icols * sizeof(float), volk_get_alignment()); |
260 |
-diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc |
261 |
-index b73a1c1ad3..26dc5d2e32 100644 |
262 |
---- a/gr-qtgui/lib/time_sink_c_impl.cc |
263 |
-+++ b/gr-qtgui/lib/time_sink_c_impl.cc |
264 |
-@@ -80,7 +80,7 @@ time_sink_c_impl::time_sink_c_impl(int size, |
265 |
- |
266 |
- // setup PDU handling input port |
267 |
- message_port_register_in(pmt::mp("in")); |
268 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&time_sink_c_impl::handle_pdus, this, _1)); |
269 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
270 |
- |
271 |
- // +2 for the PDU message buffers |
272 |
- for (unsigned int n = 0; n < d_nconnections + 2; n++) { |
273 |
-diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc |
274 |
-index df13998d75..8f41d02143 100644 |
275 |
---- a/gr-qtgui/lib/time_sink_f_impl.cc |
276 |
-+++ b/gr-qtgui/lib/time_sink_f_impl.cc |
277 |
-@@ -80,7 +80,7 @@ time_sink_f_impl::time_sink_f_impl(int size, |
278 |
- |
279 |
- // setup PDU handling input port |
280 |
- message_port_register_in(pmt::mp("in")); |
281 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&time_sink_f_impl::handle_pdus, this, _1)); |
282 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
283 |
- |
284 |
- // +1 for the PDU buffer |
285 |
- for (unsigned int n = 0; n < d_nconnections + 1; n++) { |
286 |
-diff --git a/gr-qtgui/lib/waterfall_sink_c_impl.cc b/gr-qtgui/lib/waterfall_sink_c_impl.cc |
287 |
-index fcf2ed98bc..20cebbcbda 100644 |
288 |
---- a/gr-qtgui/lib/waterfall_sink_c_impl.cc |
289 |
-+++ b/gr-qtgui/lib/waterfall_sink_c_impl.cc |
290 |
-@@ -117,20 +117,17 @@ waterfall_sink_c_impl::waterfall_sink_c_impl(int fftsize, |
291 |
- |
292 |
- // setup bw input port |
293 |
- message_port_register_in(d_port_bw); |
294 |
-- set_msg_handler(d_port_bw, |
295 |
-- boost::bind(&waterfall_sink_c_impl::handle_set_bw, this, _1)); |
296 |
-+ set_msg_handler(d_port_bw, [this](pmt::pmt_t msg) { this->handle_set_bw(msg); }); |
297 |
- |
298 |
- // setup output message port to post frequency when display is |
299 |
- // double-clicked |
300 |
- message_port_register_out(d_port); |
301 |
- message_port_register_in(d_port); |
302 |
-- set_msg_handler(d_port, |
303 |
-- boost::bind(&waterfall_sink_c_impl::handle_set_freq, this, _1)); |
304 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
305 |
- |
306 |
- // setup PDU handling input port |
307 |
- message_port_register_in(pmt::mp("in")); |
308 |
-- set_msg_handler(pmt::mp("in"), |
309 |
-- boost::bind(&waterfall_sink_c_impl::handle_pdus, this, _1)); |
310 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
311 |
- } |
312 |
- |
313 |
- waterfall_sink_c_impl::~waterfall_sink_c_impl() |
314 |
-diff --git a/gr-qtgui/lib/waterfall_sink_f_impl.cc b/gr-qtgui/lib/waterfall_sink_f_impl.cc |
315 |
-index aa1037a472..4ba6427f08 100644 |
316 |
---- a/gr-qtgui/lib/waterfall_sink_f_impl.cc |
317 |
-+++ b/gr-qtgui/lib/waterfall_sink_f_impl.cc |
318 |
-@@ -115,20 +115,17 @@ waterfall_sink_f_impl::waterfall_sink_f_impl(int fftsize, |
319 |
- |
320 |
- // setup bw input port |
321 |
- message_port_register_in(d_port_bw); |
322 |
-- set_msg_handler(d_port_bw, |
323 |
-- boost::bind(&waterfall_sink_f_impl::handle_set_bw, this, _1)); |
324 |
-+ set_msg_handler(d_port_bw, [this](pmt::pmt_t msg) { this->handle_set_bw(msg); }); |
325 |
- |
326 |
- // setup output message port to post frequency when display is |
327 |
- // double-clicked |
328 |
- message_port_register_out(d_port); |
329 |
- message_port_register_in(d_port); |
330 |
-- set_msg_handler(d_port, |
331 |
-- boost::bind(&waterfall_sink_f_impl::handle_set_freq, this, _1)); |
332 |
-+ set_msg_handler(d_port, [this](pmt::pmt_t msg) { this->handle_set_freq(msg); }); |
333 |
- |
334 |
- // setup PDU handling input port |
335 |
- message_port_register_in(pmt::mp("in")); |
336 |
-- set_msg_handler(pmt::mp("in"), |
337 |
-- boost::bind(&waterfall_sink_f_impl::handle_pdus, this, _1)); |
338 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handle_pdus(msg); }); |
339 |
- } |
340 |
- |
341 |
- waterfall_sink_f_impl::~waterfall_sink_f_impl() |
342 |
|
343 |
diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-uhd.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-uhd.patch |
344 |
deleted file mode 100644 |
345 |
index 56787372af0..00000000000 |
346 |
--- a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-gr-uhd.patch |
347 |
+++ /dev/null |
348 |
@@ -1,98 +0,0 @@ |
349 |
-From 591c2c16355eb065ff3f51f23d9d6026be188132 Mon Sep 17 00:00:00 2001 |
350 |
-From: =?UTF-8?q?Marcus=20M=C3=BCller?= <mmueller@××××××××.org> |
351 |
-Date: Sat, 22 Aug 2020 14:06:22 +0200 |
352 |
-Subject: [PATCH] msg_handler: Use lambdas in gr-uhd |
353 |
- |
354 |
---- |
355 |
- gr-uhd/lib/amsg_source_impl.cc | 3 +-- |
356 |
- gr-uhd/lib/usrp_block_impl.cc | 10 ++++++---- |
357 |
- gr-uhd/lib/usrp_block_impl.h | 1 - |
358 |
- gr-uhd/lib/usrp_source_impl.cc | 6 ++++-- |
359 |
- 4 files changed, 11 insertions(+), 9 deletions(-) |
360 |
- |
361 |
-diff --git a/gr-uhd/lib/amsg_source_impl.cc b/gr-uhd/lib/amsg_source_impl.cc |
362 |
-index 46d47a5826..e1de62e028 100644 |
363 |
---- a/gr-uhd/lib/amsg_source_impl.cc |
364 |
-+++ b/gr-uhd/lib/amsg_source_impl.cc |
365 |
-@@ -22,7 +22,6 @@ |
366 |
- |
367 |
- #include "amsg_source_impl.h" |
368 |
- #include "gr_uhd_common.h" |
369 |
--#include <boost/bind.hpp> |
370 |
- |
371 |
- namespace gr { |
372 |
- namespace uhd { |
373 |
-@@ -44,7 +43,7 @@ amsg_source_impl::amsg_source_impl(const ::uhd::device_addr_t& device_addr, |
374 |
- : _msgq(msgq), _running(true) |
375 |
- { |
376 |
- _dev = ::uhd::usrp::multi_usrp::make(device_addr); |
377 |
-- _amsg_thread = gr::thread::thread(boost::bind(&amsg_source_impl::recv_loop, this)); |
378 |
-+ _amsg_thread = gr::thread::thread([this]() { this->recv_loop(); }); |
379 |
- } |
380 |
- |
381 |
- amsg_source_impl::~amsg_source_impl() |
382 |
-diff --git a/gr-uhd/lib/usrp_block_impl.cc b/gr-uhd/lib/usrp_block_impl.cc |
383 |
-index e5e1dd9161..8344809837 100644 |
384 |
---- a/gr-uhd/lib/usrp_block_impl.cc |
385 |
-+++ b/gr-uhd/lib/usrp_block_impl.cc |
386 |
-@@ -21,7 +21,7 @@ |
387 |
- */ |
388 |
- |
389 |
- #include "usrp_block_impl.h" |
390 |
--#include <boost/make_shared.hpp> |
391 |
-+#include <functional> |
392 |
- |
393 |
- using namespace gr::uhd; |
394 |
- |
395 |
-@@ -139,10 +139,11 @@ usrp_block_impl::usrp_block_impl(const ::uhd::device_addr_t& device_addr, |
396 |
- set_msg_handler(pmt::mp("command"), |
397 |
- [this](pmt::pmt_t msg) { this->msg_handler_command(msg); }); |
398 |
- |
399 |
--// cuz we lazy: |
400 |
-+ // because we're highly efficient and adverse to work |
401 |
-+ namespace ph = std::placeholders; |
402 |
- #define REGISTER_CMD_HANDLER(key, _handler) \ |
403 |
-- register_msg_cmd_handler(key, \ |
404 |
-- boost::bind(&usrp_block_impl::_handler, this, _1, _2, _3)) |
405 |
-+ register_msg_cmd_handler( \ |
406 |
-+ key, std::bind(&usrp_block_impl::_handler, this, ph::_1, ph::_2, ph::_3)) |
407 |
- // Register default command handlers: |
408 |
- REGISTER_CMD_HANDLER(cmd_freq_key(), _cmd_handler_freq); |
409 |
- REGISTER_CMD_HANDLER(cmd_gain_key(), _cmd_handler_gain); |
410 |
-@@ -153,6 +154,7 @@ usrp_block_impl::usrp_block_impl(const ::uhd::device_addr_t& device_addr, |
411 |
- REGISTER_CMD_HANDLER(cmd_rate_key(), _cmd_handler_rate); |
412 |
- REGISTER_CMD_HANDLER(cmd_bandwidth_key(), _cmd_handler_bw); |
413 |
- REGISTER_CMD_HANDLER(cmd_antenna_key(), _cmd_handler_antenna); |
414 |
-+#undef REGISTER_CMD_HANDLER |
415 |
- } |
416 |
- |
417 |
- usrp_block_impl::~usrp_block_impl() |
418 |
-diff --git a/gr-uhd/lib/usrp_block_impl.h b/gr-uhd/lib/usrp_block_impl.h |
419 |
-index 1dbc3813bd..479b7dcd65 100644 |
420 |
---- a/gr-uhd/lib/usrp_block_impl.h |
421 |
-+++ b/gr-uhd/lib/usrp_block_impl.h |
422 |
-@@ -26,7 +26,6 @@ |
423 |
- #include <gnuradio/uhd/usrp_block.h> |
424 |
- #include <pmt/pmt.h> |
425 |
- #include <uhd/usrp/multi_usrp.hpp> |
426 |
--#include <boost/bind.hpp> |
427 |
- #include <boost/dynamic_bitset.hpp> |
428 |
- |
429 |
- |
430 |
-diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc |
431 |
-index a2ff0821bd..1e8ef020ab 100644 |
432 |
---- a/gr-uhd/lib/usrp_source_impl.cc |
433 |
-+++ b/gr-uhd/lib/usrp_source_impl.cc |
434 |
-@@ -57,8 +57,10 @@ usrp_source_impl::usrp_source_impl(const ::uhd::device_addr_t& device_addr, |
435 |
- |
436 |
- _samp_rate = this->get_samp_rate(); |
437 |
- _samps_per_packet = 1; |
438 |
-- register_msg_cmd_handler(cmd_tag_key(), |
439 |
-- boost::bind(&usrp_source_impl::_cmd_handler_tag, this, _1)); |
440 |
-+ register_msg_cmd_handler( |
441 |
-+ cmd_tag_key(), [this](const pmt::pmt_t& val, int chan, const pmt::pmt_t& msg) { |
442 |
-+ this->_cmd_handler_tag(val); |
443 |
-+ }); |
444 |
- } |
445 |
- |
446 |
- usrp_source_impl::~usrp_source_impl() {} |
447 |
|
448 |
diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-most-components.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-most-components.patch |
449 |
deleted file mode 100644 |
450 |
index ea687a7ed87..00000000000 |
451 |
--- a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-most-components.patch |
452 |
+++ /dev/null |
453 |
@@ -1,290 +0,0 @@ |
454 |
-From c6e3632952bd3e86e4d8437d7619e7fececb524e Mon Sep 17 00:00:00 2001 |
455 |
-From: Johannes Demel <demel@××××××××××××××.de> |
456 |
-Date: Sat, 9 May 2020 15:14:37 +0200 |
457 |
-Subject: [PATCH] msg_handler: Use lambdas in most components |
458 |
- |
459 |
-With this commit, all components except gr-qtgui use lambdas instead of |
460 |
-`boost::bind` to register msg handlers. |
461 |
---- |
462 |
- gr-digital/lib/chunks_to_symbols_impl.cc | 6 ++---- |
463 |
- gr-digital/lib/constellation_receiver_cb_impl.cc | 10 ++++------ |
464 |
- gr-digital/lib/costas_loop_cc_impl.cc | 2 +- |
465 |
- gr-digital/lib/crc32_async_bb_impl.cc | 4 ++-- |
466 |
- gr-digital/lib/header_payload_demux_impl.cc | 5 ++--- |
467 |
- gr-digital/lib/protocol_formatter_async_impl.cc | 3 +-- |
468 |
- gr-fec/lib/async_decoder_impl.cc | 5 ++--- |
469 |
- gr-fec/lib/async_encoder_impl.cc | 5 ++--- |
470 |
- gr-fec/lib/depuncture_bb_impl.cc | 2 +- |
471 |
- gr-fec/lib/puncture_bb_impl.cc | 2 +- |
472 |
- gr-fec/lib/puncture_ff_impl.cc | 2 +- |
473 |
- gr-filter/lib/freq_xlating_fir_filter_impl.cc | 8 ++------ |
474 |
- gr-filter/lib/mmse_resampler_cc_impl.cc | 2 +- |
475 |
- gr-filter/lib/mmse_resampler_ff_impl.cc | 2 +- |
476 |
- gr-uhd/lib/usrp_block_impl.cc | 2 +- |
477 |
- gr-zeromq/lib/pub_msg_sink_impl.cc | 2 +- |
478 |
- gr-zeromq/lib/push_msg_sink_impl.cc | 2 +- |
479 |
- 17 files changed, 26 insertions(+), 38 deletions(-) |
480 |
- |
481 |
-diff --git a/gr-digital/lib/chunks_to_symbols_impl.cc b/gr-digital/lib/chunks_to_symbols_impl.cc |
482 |
-index 26d590a66e..c2cc99b0c8 100644 |
483 |
---- a/gr-digital/lib/chunks_to_symbols_impl.cc |
484 |
-+++ b/gr-digital/lib/chunks_to_symbols_impl.cc |
485 |
-@@ -51,10 +51,8 @@ chunks_to_symbols_impl<IN_T, OUT_T>::chunks_to_symbols_impl( |
486 |
- d_symbol_table(symbol_table) |
487 |
- { |
488 |
- this->message_port_register_in(pmt::mp("set_symbol_table")); |
489 |
-- this->set_msg_handler( |
490 |
-- pmt::mp("set_symbol_table"), |
491 |
-- boost::bind( |
492 |
-- &chunks_to_symbols_impl<IN_T, OUT_T>::handle_set_symbol_table, this, _1)); |
493 |
-+ this->set_msg_handler(pmt::mp("set_symbol_table"), |
494 |
-+ [this](pmt::pmt_t msg) { this->handle_set_symbol_table(msg); }); |
495 |
- } |
496 |
- |
497 |
- template <class IN_T, class OUT_T> |
498 |
-diff --git a/gr-digital/lib/constellation_receiver_cb_impl.cc b/gr-digital/lib/constellation_receiver_cb_impl.cc |
499 |
-index 7fb7559d5e..1c160ff1bb 100644 |
500 |
---- a/gr-digital/lib/constellation_receiver_cb_impl.cc |
501 |
-+++ b/gr-digital/lib/constellation_receiver_cb_impl.cc |
502 |
-@@ -61,14 +61,12 @@ constellation_receiver_cb_impl::constellation_receiver_cb_impl( |
503 |
- "This receiver only works with constellations of dimension 1."); |
504 |
- |
505 |
- message_port_register_in(pmt::mp("set_constellation")); |
506 |
-- set_msg_handler( |
507 |
-- pmt::mp("set_constellation"), |
508 |
-- boost::bind(&constellation_receiver_cb_impl::handle_set_constellation, this, _1)); |
509 |
-+ set_msg_handler(pmt::mp("set_constellation"), |
510 |
-+ [this](pmt::pmt_t msg) { this->handle_set_constellation(msg); }); |
511 |
- |
512 |
- message_port_register_in(pmt::mp("rotate_phase")); |
513 |
-- set_msg_handler( |
514 |
-- pmt::mp("rotate_phase"), |
515 |
-- boost::bind(&constellation_receiver_cb_impl::handle_rotate_phase, this, _1)); |
516 |
-+ set_msg_handler(pmt::mp("rotate_phase"), |
517 |
-+ [this](pmt::pmt_t msg) { this->handle_rotate_phase(msg); }); |
518 |
- } |
519 |
- |
520 |
- constellation_receiver_cb_impl::~constellation_receiver_cb_impl() {} |
521 |
-diff --git a/gr-digital/lib/costas_loop_cc_impl.cc b/gr-digital/lib/costas_loop_cc_impl.cc |
522 |
-index c3b30834eb..b1a0e67caa 100644 |
523 |
---- a/gr-digital/lib/costas_loop_cc_impl.cc |
524 |
-+++ b/gr-digital/lib/costas_loop_cc_impl.cc |
525 |
-@@ -82,7 +82,7 @@ costas_loop_cc_impl::costas_loop_cc_impl(float loop_bw, int order, bool use_snr) |
526 |
- |
527 |
- message_port_register_in(pmt::mp("noise")); |
528 |
- set_msg_handler(pmt::mp("noise"), |
529 |
-- boost::bind(&costas_loop_cc_impl::handle_set_noise, this, _1)); |
530 |
-+ [this](pmt::pmt_t msg) { this->handle_set_noise(msg); }); |
531 |
- } |
532 |
- |
533 |
- costas_loop_cc_impl::~costas_loop_cc_impl() {} |
534 |
-diff --git a/gr-digital/lib/crc32_async_bb_impl.cc b/gr-digital/lib/crc32_async_bb_impl.cc |
535 |
-index bffbb2a737..230decc2ae 100644 |
536 |
---- a/gr-digital/lib/crc32_async_bb_impl.cc |
537 |
-+++ b/gr-digital/lib/crc32_async_bb_impl.cc |
538 |
-@@ -48,9 +48,9 @@ crc32_async_bb_impl::crc32_async_bb_impl(bool check) |
539 |
- message_port_register_out(d_out_port); |
540 |
- |
541 |
- if (check) |
542 |
-- set_msg_handler(d_in_port, boost::bind(&crc32_async_bb_impl::check, this, _1)); |
543 |
-+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->check(msg); }); |
544 |
- else |
545 |
-- set_msg_handler(d_in_port, boost::bind(&crc32_async_bb_impl::calc, this, _1)); |
546 |
-+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->calc(msg); }); |
547 |
- } |
548 |
- |
549 |
- crc32_async_bb_impl::~crc32_async_bb_impl() {} |
550 |
-diff --git a/gr-digital/lib/header_payload_demux_impl.cc b/gr-digital/lib/header_payload_demux_impl.cc |
551 |
-index 98c805fb20..5dc65f422b 100644 |
552 |
---- a/gr-digital/lib/header_payload_demux_impl.cc |
553 |
-+++ b/gr-digital/lib/header_payload_demux_impl.cc |
554 |
-@@ -150,9 +150,8 @@ header_payload_demux_impl::header_payload_demux_impl( |
555 |
- } |
556 |
- set_tag_propagation_policy(TPP_DONT); |
557 |
- message_port_register_in(msg_port_id()); |
558 |
-- set_msg_handler( |
559 |
-- msg_port_id(), |
560 |
-- boost::bind(&header_payload_demux_impl::parse_header_data_msg, this, _1)); |
561 |
-+ set_msg_handler(msg_port_id(), |
562 |
-+ [this](pmt::pmt_t msg) { this->parse_header_data_msg(msg); }); |
563 |
- for (size_t i = 0; i < special_tags.size(); i++) { |
564 |
- d_special_tags.push_back(pmt::string_to_symbol(special_tags[i])); |
565 |
- d_special_tags_last_value.push_back(pmt::PMT_NIL); |
566 |
-diff --git a/gr-digital/lib/protocol_formatter_async_impl.cc b/gr-digital/lib/protocol_formatter_async_impl.cc |
567 |
-index 84b693745d..08e324ecfb 100644 |
568 |
---- a/gr-digital/lib/protocol_formatter_async_impl.cc |
569 |
-+++ b/gr-digital/lib/protocol_formatter_async_impl.cc |
570 |
-@@ -54,8 +54,7 @@ protocol_formatter_async_impl::protocol_formatter_async_impl( |
571 |
- message_port_register_out(d_hdr_port); |
572 |
- message_port_register_out(d_pld_port); |
573 |
- |
574 |
-- set_msg_handler(d_in_port, |
575 |
-- boost::bind(&protocol_formatter_async_impl::append, this, _1)); |
576 |
-+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->append(msg); }); |
577 |
- } |
578 |
- |
579 |
- protocol_formatter_async_impl::~protocol_formatter_async_impl() {} |
580 |
-diff --git a/gr-fec/lib/async_decoder_impl.cc b/gr-fec/lib/async_decoder_impl.cc |
581 |
-index e7a668c832..c907b297a5 100644 |
582 |
---- a/gr-fec/lib/async_decoder_impl.cc |
583 |
-+++ b/gr-fec/lib/async_decoder_impl.cc |
584 |
-@@ -64,11 +64,10 @@ async_decoder_impl::async_decoder_impl(generic_decoder::sptr my_decoder, |
585 |
- |
586 |
- if (d_packed) { |
587 |
- d_pack = new blocks::kernel::pack_k_bits(8); |
588 |
-- set_msg_handler(d_in_port, |
589 |
-- boost::bind(&async_decoder_impl::decode_packed, this, _1)); |
590 |
-+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->decode_packed(msg); }); |
591 |
- } else { |
592 |
- set_msg_handler(d_in_port, |
593 |
-- boost::bind(&async_decoder_impl::decode_unpacked, this, _1)); |
594 |
-+ [this](pmt::pmt_t msg) { this->decode_unpacked(msg); }); |
595 |
- } |
596 |
- |
597 |
- // The maximum frame size is set by the initial frame size of the decoder. |
598 |
-diff --git a/gr-fec/lib/async_encoder_impl.cc b/gr-fec/lib/async_encoder_impl.cc |
599 |
-index 811d55601f..2e8fd62d12 100644 |
600 |
---- a/gr-fec/lib/async_encoder_impl.cc |
601 |
-+++ b/gr-fec/lib/async_encoder_impl.cc |
602 |
-@@ -63,8 +63,7 @@ async_encoder_impl::async_encoder_impl(generic_encoder::sptr my_encoder, |
603 |
- message_port_register_out(d_out_port); |
604 |
- |
605 |
- if (d_packed) { |
606 |
-- set_msg_handler(d_in_port, |
607 |
-- boost::bind(&async_encoder_impl::encode_packed, this, _1)); |
608 |
-+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->encode_packed(msg); }); |
609 |
- |
610 |
- d_unpack = new blocks::kernel::unpack_k_bits(8); |
611 |
- |
612 |
-@@ -74,7 +73,7 @@ async_encoder_impl::async_encoder_impl(generic_encoder::sptr my_encoder, |
613 |
- |
614 |
- } else { |
615 |
- set_msg_handler(d_in_port, |
616 |
-- boost::bind(&async_encoder_impl::encode_unpacked, this, _1)); |
617 |
-+ [this](pmt::pmt_t msg) { this->encode_unpacked(msg); }); |
618 |
- } |
619 |
- |
620 |
- if (d_packed || (strncmp(d_encoder->get_input_conversion(), "pack", 4) == 0)) { |
621 |
-diff --git a/gr-fec/lib/depuncture_bb_impl.cc b/gr-fec/lib/depuncture_bb_impl.cc |
622 |
-index 27d00bb5bb..59ed44dd8a 100644 |
623 |
---- a/gr-fec/lib/depuncture_bb_impl.cc |
624 |
-+++ b/gr-fec/lib/depuncture_bb_impl.cc |
625 |
-@@ -74,7 +74,7 @@ depuncture_bb_impl::depuncture_bb_impl(int puncsize, int puncpat, int delay, cha |
626 |
- set_fixed_rate(true); |
627 |
- set_relative_rate((uint64_t)d_puncsize, (uint64_t)(d_puncsize - d_puncholes)); |
628 |
- set_output_multiple(d_puncsize); |
629 |
-- // set_msg_handler(boost::bind(&depuncture_bb_impl::catch_msg, this, _1)); |
630 |
-+ // set_msg_handler(<portname>, [this](pmt::pmt_t msg) { this->catch_msg(msg); }); |
631 |
- } |
632 |
- |
633 |
- depuncture_bb_impl::~depuncture_bb_impl() {} |
634 |
-diff --git a/gr-fec/lib/puncture_bb_impl.cc b/gr-fec/lib/puncture_bb_impl.cc |
635 |
-index a365d6a69f..1f328c2214 100644 |
636 |
---- a/gr-fec/lib/puncture_bb_impl.cc |
637 |
-+++ b/gr-fec/lib/puncture_bb_impl.cc |
638 |
-@@ -72,7 +72,7 @@ puncture_bb_impl::puncture_bb_impl(int puncsize, int puncpat, int delay) |
639 |
- set_fixed_rate(true); |
640 |
- set_relative_rate((uint64_t)(d_puncsize - d_puncholes), (uint64_t)d_puncsize); |
641 |
- set_output_multiple(d_puncsize - d_puncholes); |
642 |
-- // set_msg_handler(boost::bind(&puncture_bb_impl::catch_msg, this, _1)); |
643 |
-+ // set_msg_handler(<portname>, [this](pmt::pmt_t msg) { this->catch_msg(msg); }); |
644 |
- } |
645 |
- |
646 |
- puncture_bb_impl::~puncture_bb_impl() {} |
647 |
-diff --git a/gr-fec/lib/puncture_ff_impl.cc b/gr-fec/lib/puncture_ff_impl.cc |
648 |
-index c95288d691..31c686ea4c 100644 |
649 |
---- a/gr-fec/lib/puncture_ff_impl.cc |
650 |
-+++ b/gr-fec/lib/puncture_ff_impl.cc |
651 |
-@@ -72,7 +72,7 @@ puncture_ff_impl::puncture_ff_impl(int puncsize, int puncpat, int delay) |
652 |
- set_fixed_rate(true); |
653 |
- set_relative_rate((uint64_t)(d_puncsize - d_puncholes), (uint64_t)d_puncsize); |
654 |
- set_output_multiple(d_puncsize - d_puncholes); |
655 |
-- // set_msg_handler(boost::bind(&puncture_ff_impl::catch_msg, this, _1)); |
656 |
-+ // set_msg_handler(<portname>, [this](pmt::pmt_t msg) { this->catch_msg(msg); }); |
657 |
- } |
658 |
- |
659 |
- puncture_ff_impl::~puncture_ff_impl() {} |
660 |
-diff --git a/gr-filter/lib/freq_xlating_fir_filter_impl.cc b/gr-filter/lib/freq_xlating_fir_filter_impl.cc |
661 |
-index 8ddc967ba1..1050fb82a5 100644 |
662 |
---- a/gr-filter/lib/freq_xlating_fir_filter_impl.cc |
663 |
-+++ b/gr-filter/lib/freq_xlating_fir_filter_impl.cc |
664 |
-@@ -67,12 +67,8 @@ freq_xlating_fir_filter_impl<IN_T, OUT_T, TAP_T>::freq_xlating_fir_filter_impl( |
665 |
- this->build_composite_fir(); |
666 |
- |
667 |
- this->message_port_register_in(pmt::mp("freq")); |
668 |
-- this->set_msg_handler( |
669 |
-- pmt::mp("freq"), |
670 |
-- boost::bind( |
671 |
-- &freq_xlating_fir_filter_impl<IN_T, OUT_T, TAP_T>::handle_set_center_freq, |
672 |
-- this, |
673 |
-- _1)); |
674 |
-+ this->set_msg_handler(pmt::mp("freq"), |
675 |
-+ [this](pmt::pmt_t msg) { this->handle_set_center_freq(msg); }); |
676 |
- } |
677 |
- |
678 |
- template <class IN_T, class OUT_T, class TAP_T> |
679 |
-diff --git a/gr-filter/lib/mmse_resampler_cc_impl.cc b/gr-filter/lib/mmse_resampler_cc_impl.cc |
680 |
-index 59f9eacfab..9ca62082ce 100644 |
681 |
---- a/gr-filter/lib/mmse_resampler_cc_impl.cc |
682 |
-+++ b/gr-filter/lib/mmse_resampler_cc_impl.cc |
683 |
-@@ -53,7 +53,7 @@ mmse_resampler_cc_impl::mmse_resampler_cc_impl(float phase_shift, float resamp_r |
684 |
- set_inverse_relative_rate(d_mu_inc); |
685 |
- message_port_register_in(pmt::intern("msg_in")); |
686 |
- set_msg_handler(pmt::intern("msg_in"), |
687 |
-- boost::bind(&mmse_resampler_cc_impl::handle_msg, this, _1)); |
688 |
-+ [this](pmt::pmt_t msg) { this->handle_msg(msg); }); |
689 |
- } |
690 |
- |
691 |
- mmse_resampler_cc_impl::~mmse_resampler_cc_impl() { delete d_resamp; } |
692 |
-diff --git a/gr-filter/lib/mmse_resampler_ff_impl.cc b/gr-filter/lib/mmse_resampler_ff_impl.cc |
693 |
-index 342d9f7678..312a6a8755 100644 |
694 |
---- a/gr-filter/lib/mmse_resampler_ff_impl.cc |
695 |
-+++ b/gr-filter/lib/mmse_resampler_ff_impl.cc |
696 |
-@@ -54,7 +54,7 @@ mmse_resampler_ff_impl::mmse_resampler_ff_impl(float phase_shift, float resamp_r |
697 |
- |
698 |
- message_port_register_in(pmt::intern("msg_in")); |
699 |
- set_msg_handler(pmt::intern("msg_in"), |
700 |
-- boost::bind(&mmse_resampler_ff_impl::handle_msg, this, _1)); |
701 |
-+ [this](pmt::pmt_t msg) { this->handle_msg(msg); }); |
702 |
- } |
703 |
- |
704 |
- mmse_resampler_ff_impl::~mmse_resampler_ff_impl() { delete d_resamp; } |
705 |
-diff --git a/gr-uhd/lib/usrp_block_impl.cc b/gr-uhd/lib/usrp_block_impl.cc |
706 |
-index 4f030159ff..e5e1dd9161 100644 |
707 |
---- a/gr-uhd/lib/usrp_block_impl.cc |
708 |
-+++ b/gr-uhd/lib/usrp_block_impl.cc |
709 |
-@@ -137,7 +137,7 @@ usrp_block_impl::usrp_block_impl(const ::uhd::device_addr_t& device_addr, |
710 |
- // Set up message ports: |
711 |
- message_port_register_in(pmt::mp("command")); |
712 |
- set_msg_handler(pmt::mp("command"), |
713 |
-- boost::bind(&usrp_block_impl::msg_handler_command, this, _1)); |
714 |
-+ [this](pmt::pmt_t msg) { this->msg_handler_command(msg); }); |
715 |
- |
716 |
- // cuz we lazy: |
717 |
- #define REGISTER_CMD_HANDLER(key, _handler) \ |
718 |
-diff --git a/gr-zeromq/lib/pub_msg_sink_impl.cc b/gr-zeromq/lib/pub_msg_sink_impl.cc |
719 |
-index b5da7421ef..3973b8f835 100644 |
720 |
---- a/gr-zeromq/lib/pub_msg_sink_impl.cc |
721 |
-+++ b/gr-zeromq/lib/pub_msg_sink_impl.cc |
722 |
-@@ -62,7 +62,7 @@ pub_msg_sink_impl::pub_msg_sink_impl(char* address, int timeout, bool bind) |
723 |
- } |
724 |
- |
725 |
- message_port_register_in(pmt::mp("in")); |
726 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&pub_msg_sink_impl::handler, this, _1)); |
727 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handler(msg); }); |
728 |
- } |
729 |
- |
730 |
- pub_msg_sink_impl::~pub_msg_sink_impl() |
731 |
-diff --git a/gr-zeromq/lib/push_msg_sink_impl.cc b/gr-zeromq/lib/push_msg_sink_impl.cc |
732 |
-index 4140781ab9..fee734753b 100644 |
733 |
---- a/gr-zeromq/lib/push_msg_sink_impl.cc |
734 |
-+++ b/gr-zeromq/lib/push_msg_sink_impl.cc |
735 |
-@@ -62,7 +62,7 @@ push_msg_sink_impl::push_msg_sink_impl(char* address, int timeout, bool bind) |
736 |
- } |
737 |
- |
738 |
- message_port_register_in(pmt::mp("in")); |
739 |
-- set_msg_handler(pmt::mp("in"), boost::bind(&push_msg_sink_impl::handler, this, _1)); |
740 |
-+ set_msg_handler(pmt::mp("in"), [this](pmt::pmt_t msg) { this->handler(msg); }); |
741 |
- } |
742 |
- |
743 |
- push_msg_sink_impl::~push_msg_sink_impl() |
744 |
|
745 |
diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-set-msg-handlers.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-set-msg-handlers.patch |
746 |
deleted file mode 100644 |
747 |
index 2d91fe2cce2..00000000000 |
748 |
--- a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-lamda-set-msg-handlers.patch |
749 |
+++ /dev/null |
750 |
@@ -1,298 +0,0 @@ |
751 |
-From 7c841011f9316d4aae068b444c995829e09278d7 Mon Sep 17 00:00:00 2001 |
752 |
-From: Johannes Demel <demel@××××××××××××××.de> |
753 |
-Date: Sat, 9 May 2020 14:25:32 +0200 |
754 |
-Subject: [PATCH] msg_handler: Use lambdas to set msg handlers |
755 |
- |
756 |
-With this commit, all calls to `set_msg_handler` in `gr-blocks` use |
757 |
-lambdas. This helps to use `std::function` instead of `boost::function`. |
758 |
---- |
759 |
- gnuradio-runtime/lib/block.cc | 3 +-- |
760 |
- gr-blocks/lib/copy_impl.cc | 2 +- |
761 |
- gr-blocks/lib/message_debug_impl.cc | 6 +++--- |
762 |
- gr-blocks/lib/message_strobe_impl.cc | 3 +-- |
763 |
- gr-blocks/lib/message_strobe_random_impl.cc | 3 +-- |
764 |
- gr-blocks/lib/multiply_matrix_impl.cc | 7 ++----- |
765 |
- gr-blocks/lib/mute_impl.cc | 2 +- |
766 |
- gr-blocks/lib/nop_impl.cc | 3 +-- |
767 |
- gr-blocks/lib/pdu_filter_impl.cc | 2 +- |
768 |
- gr-blocks/lib/pdu_remove_impl.cc | 2 +- |
769 |
- gr-blocks/lib/pdu_set_impl.cc | 3 ++- |
770 |
- gr-blocks/lib/random_pdu_impl.cc | 2 +- |
771 |
- gr-blocks/lib/repeat_impl.cc | 2 +- |
772 |
- gr-blocks/lib/socket_pdu_impl.cc | 8 ++++---- |
773 |
- gr-blocks/lib/tagged_stream_multiply_length_impl.cc | 5 ++--- |
774 |
- gr-blocks/lib/tuntap_pdu_impl.cc | 2 +- |
775 |
- 16 files changed, 24 insertions(+), 31 deletions(-) |
776 |
- |
777 |
-diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc |
778 |
-index 5914283908..beec8c470c 100644 |
779 |
---- a/gnuradio-runtime/lib/block.cc |
780 |
-+++ b/gnuradio-runtime/lib/block.cc |
781 |
-@@ -61,9 +61,8 @@ block::block(const std::string& name, |
782 |
- { |
783 |
- global_block_registry.register_primitive(alias(), this); |
784 |
- message_port_register_in(d_system_port); |
785 |
-- set_msg_handler(d_system_port, boost::bind(&block::system_handler, this, _1)); |
786 |
-- |
787 |
- configure_default_loggers(d_logger, d_debug_logger, symbol_name()); |
788 |
-+ set_msg_handler(d_system_port, [this](pmt::pmt_t msg) { this->system_handler(msg); }); |
789 |
- } |
790 |
- |
791 |
- block::~block() { global_block_registry.unregister_primitive(symbol_name()); } |
792 |
-diff --git a/gr-blocks/lib/copy_impl.cc b/gr-blocks/lib/copy_impl.cc |
793 |
-index c377e57b1e..4c97d07a76 100644 |
794 |
---- a/gr-blocks/lib/copy_impl.cc |
795 |
-+++ b/gr-blocks/lib/copy_impl.cc |
796 |
-@@ -44,7 +44,7 @@ copy_impl::copy_impl(size_t itemsize) |
797 |
- d_enabled(true) |
798 |
- { |
799 |
- message_port_register_in(pmt::mp("en")); |
800 |
-- set_msg_handler(pmt::mp("en"), boost::bind(©_impl::handle_enable, this, _1)); |
801 |
-+ set_msg_handler(pmt::mp("en"), [this](pmt::pmt_t msg) { this->handle_enable(msg); }); |
802 |
- } |
803 |
- |
804 |
- copy_impl::~copy_impl() {} |
805 |
-diff --git a/gr-blocks/lib/message_debug_impl.cc b/gr-blocks/lib/message_debug_impl.cc |
806 |
-index a8c84aa509..719fbd818a 100644 |
807 |
---- a/gr-blocks/lib/message_debug_impl.cc |
808 |
-+++ b/gr-blocks/lib/message_debug_impl.cc |
809 |
-@@ -90,14 +90,14 @@ message_debug_impl::message_debug_impl() |
810 |
- : block("message_debug", io_signature::make(0, 0, 0), io_signature::make(0, 0, 0)) |
811 |
- { |
812 |
- message_port_register_in(pmt::mp("print")); |
813 |
-- set_msg_handler(pmt::mp("print"), boost::bind(&message_debug_impl::print, this, _1)); |
814 |
-+ set_msg_handler(pmt::mp("print"), [this](pmt::pmt_t msg) { this->print(msg); }); |
815 |
- |
816 |
- message_port_register_in(pmt::mp("store")); |
817 |
-- set_msg_handler(pmt::mp("store"), boost::bind(&message_debug_impl::store, this, _1)); |
818 |
-+ set_msg_handler(pmt::mp("store"), [this](pmt::pmt_t msg) { this->store(msg); }); |
819 |
- |
820 |
- message_port_register_in(pmt::mp("print_pdu")); |
821 |
- set_msg_handler(pmt::mp("print_pdu"), |
822 |
-- boost::bind(&message_debug_impl::print_pdu, this, _1)); |
823 |
-+ [this](pmt::pmt_t msg) { this->print_pdu(msg); }); |
824 |
- } |
825 |
- |
826 |
- message_debug_impl::~message_debug_impl() {} |
827 |
-diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc |
828 |
-index 038eeae5a1..67a95be8f2 100644 |
829 |
---- a/gr-blocks/lib/message_strobe_impl.cc |
830 |
-+++ b/gr-blocks/lib/message_strobe_impl.cc |
831 |
-@@ -53,8 +53,7 @@ message_strobe_impl::message_strobe_impl(pmt::pmt_t msg, long period_ms) |
832 |
- message_port_register_out(d_port); |
833 |
- |
834 |
- message_port_register_in(pmt::mp("set_msg")); |
835 |
-- set_msg_handler(pmt::mp("set_msg"), |
836 |
-- boost::bind(&message_strobe_impl::set_msg, this, _1)); |
837 |
-+ set_msg_handler(pmt::mp("set_msg"), [this](pmt::pmt_t msg) { this->set_msg(msg); }); |
838 |
- } |
839 |
- |
840 |
- message_strobe_impl::~message_strobe_impl() {} |
841 |
-diff --git a/gr-blocks/lib/message_strobe_random_impl.cc b/gr-blocks/lib/message_strobe_random_impl.cc |
842 |
-index 0ab5d6adc7..1b8deca952 100644 |
843 |
---- a/gr-blocks/lib/message_strobe_random_impl.cc |
844 |
-+++ b/gr-blocks/lib/message_strobe_random_impl.cc |
845 |
-@@ -74,8 +74,7 @@ message_strobe_random_impl::message_strobe_random_impl( |
846 |
- new gr::thread::thread(boost::bind(&message_strobe_random_impl::run, this))); |
847 |
- |
848 |
- message_port_register_in(pmt::mp("set_msg")); |
849 |
-- set_msg_handler(pmt::mp("set_msg"), |
850 |
-- boost::bind(&message_strobe_random_impl::set_msg, this, _1)); |
851 |
-+ set_msg_handler(pmt::mp("set_msg"), [this](pmt::pmt_t msg) { this->set_msg(msg); }); |
852 |
- } |
853 |
- |
854 |
- long message_strobe_random_impl::next_delay() |
855 |
-diff --git a/gr-blocks/lib/multiply_matrix_impl.cc b/gr-blocks/lib/multiply_matrix_impl.cc |
856 |
-index e1b9c746c6..03e7894536 100644 |
857 |
---- a/gr-blocks/lib/multiply_matrix_impl.cc |
858 |
-+++ b/gr-blocks/lib/multiply_matrix_impl.cc |
859 |
-@@ -235,9 +235,7 @@ multiply_matrix_impl<gr_complex>::multiply_matrix_impl( |
860 |
- |
861 |
- pmt::pmt_t port_name = pmt::string_to_symbol("set_A"); |
862 |
- message_port_register_in(port_name); |
863 |
-- set_msg_handler( |
864 |
-- port_name, |
865 |
-- boost::bind(&multiply_matrix_impl<gr_complex>::msg_handler_A, this, _1)); |
866 |
-+ set_msg_handler(port_name, [this](pmt::pmt_t msg) { this->msg_handler_A(msg); }); |
867 |
- } |
868 |
- |
869 |
- template <> |
870 |
-@@ -256,8 +254,7 @@ multiply_matrix_impl<float>::multiply_matrix_impl( |
871 |
- |
872 |
- pmt::pmt_t port_name = pmt::string_to_symbol("set_A"); |
873 |
- message_port_register_in(port_name); |
874 |
-- set_msg_handler(port_name, |
875 |
-- boost::bind(&multiply_matrix_impl<float>::msg_handler_A, this, _1)); |
876 |
-+ set_msg_handler(port_name, [this](pmt::pmt_t msg) { this->msg_handler_A(msg); }); |
877 |
- } |
878 |
- |
879 |
- |
880 |
-diff --git a/gr-blocks/lib/mute_impl.cc b/gr-blocks/lib/mute_impl.cc |
881 |
-index bd65ce2075..c9a1d200c8 100644 |
882 |
---- a/gr-blocks/lib/mute_impl.cc |
883 |
-+++ b/gr-blocks/lib/mute_impl.cc |
884 |
-@@ -48,7 +48,7 @@ mute_impl<T>::mute_impl(bool mute) |
885 |
- { |
886 |
- this->message_port_register_in(pmt::intern("set_mute")); |
887 |
- this->set_msg_handler(pmt::intern("set_mute"), |
888 |
-- boost::bind(&mute_impl<T>::set_mute_pmt, this, _1)); |
889 |
-+ [this](pmt::pmt_t msg) { this->set_mute_pmt(msg); }); |
890 |
- } |
891 |
- |
892 |
- template <class T> |
893 |
-diff --git a/gr-blocks/lib/nop_impl.cc b/gr-blocks/lib/nop_impl.cc |
894 |
-index db216d97a4..4e1e887f42 100644 |
895 |
---- a/gr-blocks/lib/nop_impl.cc |
896 |
-+++ b/gr-blocks/lib/nop_impl.cc |
897 |
-@@ -26,7 +26,6 @@ |
898 |
- |
899 |
- #include "nop_impl.h" |
900 |
- #include <gnuradio/io_signature.h> |
901 |
--#include <boost/bind.hpp> |
902 |
- |
903 |
- namespace gr { |
904 |
- namespace blocks { |
905 |
-@@ -45,7 +44,7 @@ nop_impl::nop_impl(size_t sizeof_stream_item) |
906 |
- // Arrange to have count_received_msgs called when messages are received. |
907 |
- message_port_register_in(pmt::mp("port")); |
908 |
- set_msg_handler(pmt::mp("port"), |
909 |
-- boost::bind(&nop_impl::count_received_msgs, this, _1)); |
910 |
-+ [this](pmt::pmt_t msg) { this->count_received_msgs(msg); }); |
911 |
- } |
912 |
- |
913 |
- nop_impl::~nop_impl() {} |
914 |
-diff --git a/gr-blocks/lib/pdu_filter_impl.cc b/gr-blocks/lib/pdu_filter_impl.cc |
915 |
-index b0748eec02..760027a78c 100644 |
916 |
---- a/gr-blocks/lib/pdu_filter_impl.cc |
917 |
-+++ b/gr-blocks/lib/pdu_filter_impl.cc |
918 |
-@@ -45,7 +45,7 @@ pdu_filter_impl::pdu_filter_impl(pmt::pmt_t k, pmt::pmt_t v, bool invert) |
919 |
- message_port_register_out(pdu::pdu_port_id()); |
920 |
- message_port_register_in(pdu::pdu_port_id()); |
921 |
- set_msg_handler(pdu::pdu_port_id(), |
922 |
-- boost::bind(&pdu_filter_impl::handle_msg, this, _1)); |
923 |
-+ [this](pmt::pmt_t msg) { this->handle_msg(msg); }); |
924 |
- } |
925 |
- |
926 |
- void pdu_filter_impl::handle_msg(pmt::pmt_t pdu) |
927 |
-diff --git a/gr-blocks/lib/pdu_remove_impl.cc b/gr-blocks/lib/pdu_remove_impl.cc |
928 |
-index 19cc4dc76a..58277ca0d0 100644 |
929 |
---- a/gr-blocks/lib/pdu_remove_impl.cc |
930 |
-+++ b/gr-blocks/lib/pdu_remove_impl.cc |
931 |
-@@ -43,7 +43,7 @@ pdu_remove_impl::pdu_remove_impl(pmt::pmt_t k) |
932 |
- message_port_register_out(pdu::pdu_port_id()); |
933 |
- message_port_register_in(pdu::pdu_port_id()); |
934 |
- set_msg_handler(pdu::pdu_port_id(), |
935 |
-- boost::bind(&pdu_remove_impl::handle_msg, this, _1)); |
936 |
-+ [this](pmt::pmt_t msg) { this->handle_msg(msg); }); |
937 |
- } |
938 |
- |
939 |
- void pdu_remove_impl::handle_msg(pmt::pmt_t pdu) |
940 |
-diff --git a/gr-blocks/lib/pdu_set_impl.cc b/gr-blocks/lib/pdu_set_impl.cc |
941 |
-index 40fbc3cd83..61f1bb1284 100644 |
942 |
---- a/gr-blocks/lib/pdu_set_impl.cc |
943 |
-+++ b/gr-blocks/lib/pdu_set_impl.cc |
944 |
-@@ -43,7 +43,8 @@ pdu_set_impl::pdu_set_impl(pmt::pmt_t k, pmt::pmt_t v) |
945 |
- { |
946 |
- message_port_register_out(pdu::pdu_port_id()); |
947 |
- message_port_register_in(pdu::pdu_port_id()); |
948 |
-- set_msg_handler(pdu::pdu_port_id(), boost::bind(&pdu_set_impl::handle_msg, this, _1)); |
949 |
-+ set_msg_handler(pdu::pdu_port_id(), |
950 |
-+ [this](pmt::pmt_t msg) { this->handle_msg(msg); }); |
951 |
- } |
952 |
- |
953 |
- void pdu_set_impl::handle_msg(pmt::pmt_t pdu) |
954 |
-diff --git a/gr-blocks/lib/random_pdu_impl.cc b/gr-blocks/lib/random_pdu_impl.cc |
955 |
-index 75d825aefa..5207a779d6 100644 |
956 |
---- a/gr-blocks/lib/random_pdu_impl.cc |
957 |
-+++ b/gr-blocks/lib/random_pdu_impl.cc |
958 |
-@@ -53,7 +53,7 @@ random_pdu_impl::random_pdu_impl(int min_items, |
959 |
- message_port_register_out(pdu::pdu_port_id()); |
960 |
- message_port_register_in(pmt::mp("generate")); |
961 |
- set_msg_handler(pmt::mp("generate"), |
962 |
-- boost::bind(&random_pdu_impl::generate_pdu, this, _1)); |
963 |
-+ [this](pmt::pmt_t msg) { this->generate_pdu(msg); }); |
964 |
- if (length_modulo < 1) |
965 |
- throw std::runtime_error("length_module must be >= 1"); |
966 |
- if (max_items < length_modulo) |
967 |
-diff --git a/gr-blocks/lib/repeat_impl.cc b/gr-blocks/lib/repeat_impl.cc |
968 |
-index 189fbc8948..7262b11a2e 100644 |
969 |
---- a/gr-blocks/lib/repeat_impl.cc |
970 |
-+++ b/gr-blocks/lib/repeat_impl.cc |
971 |
-@@ -45,7 +45,7 @@ repeat_impl::repeat_impl(size_t itemsize, int interp) |
972 |
- { |
973 |
- message_port_register_in(pmt::mp("interpolation")); |
974 |
- set_msg_handler(pmt::mp("interpolation"), |
975 |
-- boost::bind(&repeat_impl::msg_set_interpolation, this, _1)); |
976 |
-+ [this](pmt::pmt_t msg) { this->msg_set_interpolation(msg); }); |
977 |
- } |
978 |
- |
979 |
- void repeat_impl::msg_set_interpolation(pmt::pmt_t msg) |
980 |
-diff --git a/gr-blocks/lib/socket_pdu_impl.cc b/gr-blocks/lib/socket_pdu_impl.cc |
981 |
-index df69f07ad2..edf572e76c 100644 |
982 |
---- a/gr-blocks/lib/socket_pdu_impl.cc |
983 |
-+++ b/gr-blocks/lib/socket_pdu_impl.cc |
984 |
-@@ -101,7 +101,7 @@ socket_pdu_impl::socket_pdu_impl(std::string type, |
985 |
- start_tcp_accept(); |
986 |
- |
987 |
- set_msg_handler(pdu::pdu_port_id(), |
988 |
-- boost::bind(&socket_pdu_impl::tcp_server_send, this, _1)); |
989 |
-+ [this](pmt::pmt_t msg) { this->tcp_server_send(msg); }); |
990 |
- } else if (type == "TCP_CLIENT") { |
991 |
- boost::system::error_code error = boost::asio::error::host_not_found; |
992 |
- d_tcp_socket.reset(new boost::asio::ip::tcp::socket(d_io_service)); |
993 |
-@@ -111,7 +111,7 @@ socket_pdu_impl::socket_pdu_impl(std::string type, |
994 |
- d_tcp_socket->set_option(boost::asio::ip::tcp::no_delay(d_tcp_no_delay)); |
995 |
- |
996 |
- set_msg_handler(pdu::pdu_port_id(), |
997 |
-- boost::bind(&socket_pdu_impl::tcp_client_send, this, _1)); |
998 |
-+ [this](pmt::pmt_t msg) { this->tcp_client_send(msg); }); |
999 |
- |
1000 |
- d_tcp_socket->async_read_some( |
1001 |
- boost::asio::buffer(d_rxbuf), |
1002 |
-@@ -131,7 +131,7 @@ socket_pdu_impl::socket_pdu_impl(std::string type, |
1003 |
- boost::asio::placeholders::bytes_transferred)); |
1004 |
- |
1005 |
- set_msg_handler(pdu::pdu_port_id(), |
1006 |
-- boost::bind(&socket_pdu_impl::udp_send, this, _1)); |
1007 |
-+ [this](pmt::pmt_t msg) { this->udp_send(msg); }); |
1008 |
- } else if (type == "UDP_CLIENT") { |
1009 |
- d_udp_socket.reset( |
1010 |
- new boost::asio::ip::udp::socket(d_io_service, d_udp_endpoint)); |
1011 |
-@@ -144,7 +144,7 @@ socket_pdu_impl::socket_pdu_impl(std::string type, |
1012 |
- boost::asio::placeholders::bytes_transferred)); |
1013 |
- |
1014 |
- set_msg_handler(pdu::pdu_port_id(), |
1015 |
-- boost::bind(&socket_pdu_impl::udp_send, this, _1)); |
1016 |
-+ [this](pmt::pmt_t msg) { this->udp_send(msg); }); |
1017 |
- } else |
1018 |
- throw std::runtime_error("gr::blocks:socket_pdu: unknown socket type"); |
1019 |
- |
1020 |
-diff --git a/gr-blocks/lib/tagged_stream_multiply_length_impl.cc b/gr-blocks/lib/tagged_stream_multiply_length_impl.cc |
1021 |
-index 30f4c46dc6..2266c01fe3 100644 |
1022 |
---- a/gr-blocks/lib/tagged_stream_multiply_length_impl.cc |
1023 |
-+++ b/gr-blocks/lib/tagged_stream_multiply_length_impl.cc |
1024 |
-@@ -49,9 +49,8 @@ tagged_stream_multiply_length_impl::tagged_stream_multiply_length_impl( |
1025 |
- set_tag_propagation_policy(TPP_DONT); |
1026 |
- set_relative_rate(1, 1); |
1027 |
- message_port_register_in(pmt::intern("set_scalar")); |
1028 |
-- set_msg_handler( |
1029 |
-- pmt::intern("set_scalar"), |
1030 |
-- boost::bind(&tagged_stream_multiply_length_impl::set_scalar_pmt, this, _1)); |
1031 |
-+ set_msg_handler(pmt::intern("set_scalar"), |
1032 |
-+ [this](pmt::pmt_t msg) { this->set_scalar_pmt(msg); }); |
1033 |
- } |
1034 |
- |
1035 |
- tagged_stream_multiply_length_impl::~tagged_stream_multiply_length_impl() {} |
1036 |
-diff --git a/gr-blocks/lib/tuntap_pdu_impl.cc b/gr-blocks/lib/tuntap_pdu_impl.cc |
1037 |
-index 4343ae1dc3..19742235d9 100644 |
1038 |
---- a/gr-blocks/lib/tuntap_pdu_impl.cc |
1039 |
-+++ b/gr-blocks/lib/tuntap_pdu_impl.cc |
1040 |
-@@ -96,7 +96,7 @@ tuntap_pdu_impl::tuntap_pdu_impl(std::string dev, int MTU, bool istunflag) |
1041 |
- |
1042 |
- // set up input message port |
1043 |
- message_port_register_in(pdu::pdu_port_id()); |
1044 |
-- set_msg_handler(pdu::pdu_port_id(), boost::bind(&tuntap_pdu_impl::send, this, _1)); |
1045 |
-+ set_msg_handler(pdu::pdu_port_id(), [this](pmt::pmt_t msg) { this->send(msg); }); |
1046 |
- } |
1047 |
- |
1048 |
- int tuntap_pdu_impl::tun_alloc(char* dev, int flags) |