diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-03-29 17:31:06 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-04-01 16:23:06 -0700 |
commit | f74d3dae8f2ec423c61932b4ad0359f98b996a51 (patch) | |
tree | 1e16eb3537829248c177b04209acce3fe2bead96 /gr-blocks/lib/udp_sink_impl.cc | |
parent | eea0e411411303ea94953c5cd8454c4139a474ff (diff) |
gruel: moved gruel into subdirs of gnuradio-runtime.
PMTs are handled slightly different and are installed into their own module and include dir.
Diffstat (limited to 'gr-blocks/lib/udp_sink_impl.cc')
-rw-r--r-- | gr-blocks/lib/udp_sink_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/udp_sink_impl.cc b/gr-blocks/lib/udp_sink_impl.cc index db21da3eeb..4bce4ae9c5 100644 --- a/gr-blocks/lib/udp_sink_impl.cc +++ b/gr-blocks/lib/udp_sink_impl.cc @@ -28,7 +28,7 @@ #include <gr_io_signature.h> #include <boost/asio.hpp> #include <boost/format.hpp> -#include <gruel/thread.h> +#include <thread/thread.h> #include <stdexcept> #include <stdio.h> #include <string.h> @@ -95,7 +95,7 @@ namespace gr { if(!d_connected) return; - gruel::scoped_lock guard(d_mutex); // protect d_socket from work() + gr::thread::scoped_lock guard(d_mutex); // protect d_socket from work() // Send a few zero-length packets to signal receiver we are done boost::array<char, 1> send_buf = {{ 0 }}; @@ -120,7 +120,7 @@ namespace gr { ssize_t r=0, bytes_sent=0, bytes_to_send=0; ssize_t total_size = noutput_items*d_itemsize; - gruel::scoped_lock guard(d_mutex); // protect d_socket + gr::thread::scoped_lock guard(d_mutex); // protect d_socket while(bytes_sent < total_size) { bytes_to_send = std::min((ssize_t)d_payload_size, (total_size-bytes_sent)); |