diff options
author | Josh Blum <josh@joshknows.com> | 2012-09-29 20:19:16 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2012-09-29 21:53:00 -0700 |
commit | 65ea256f8de15b7a23c602f9775edf0636b3732c (patch) | |
tree | 01d94a6fb444c9c23cb4331e4d55e65ecb9e4124 /gnuradio-core/src | |
parent | 692890cd40aa07a8290c7fdee24c94b6a0eabb8c (diff) |
core: udp source wait mode yields work thread
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/io/gr_udp_source.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnuradio-core/src/lib/io/gr_udp_source.cc b/gnuradio-core/src/lib/io/gr_udp_source.cc index af41159ee9..eca8e89d01 100644 --- a/gnuradio-core/src/lib/io/gr_udp_source.cc +++ b/gnuradio-core/src/lib/io/gr_udp_source.cc @@ -269,8 +269,9 @@ gr_udp_source::work (int noutput_items, else if(r == 0 ) { // timed out if( d_wait ) { // Allow boost thread interrupt, then try again - boost::this_thread::interruption_point(); - continue; + //boost::this_thread::interruption_point(); + //continue; + return 0; } else return -1; @@ -294,8 +295,9 @@ gr_udp_source::work (int noutput_items, if( d_wait ) { // Allow boost thread interrupt, then try again - boost::this_thread::interruption_point(); - continue; + //boost::this_thread::interruption_point(); + //continue; + return 0; } else return -1; |