commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 04/06: blocks: switching last calls from bo


From: git
Subject: [Commit-gnuradio] [gnuradio] 04/06: blocks: switching last calls from boost::thread to gr::thread.
Date: Wed, 1 Oct 2014 15:49:26 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit fc1289aa096ce7c51f55095849739d623d0f6131
Author: Tom Rondeau <address@hidden>
Date:   Tue Sep 30 21:55:16 2014 -0400

    blocks: switching last calls from boost::thread to gr::thread.
    
    There are a few places where the threads are specifically used by 
boost::thread calls in the namespace. If we ever move away from using boost's 
threads, we might have some more specific cleanup to do, but it's not obvious 
how to easily abstract this further.
    
    Addresses Issue # 706.
---
 gr-blocks/lib/message_strobe_impl.cc        | 8 ++++----
 gr-blocks/lib/message_strobe_impl.h         | 2 +-
 gr-blocks/lib/message_strobe_random_impl.cc | 4 ++--
 gr-blocks/lib/message_strobe_random_impl.h  | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gr-blocks/lib/message_strobe_impl.cc 
b/gr-blocks/lib/message_strobe_impl.cc
index bd0ad80..b3f1782 100644
--- a/gr-blocks/lib/message_strobe_impl.cc
+++ b/gr-blocks/lib/message_strobe_impl.cc
@@ -47,15 +47,15 @@ namespace gr {
 
     message_strobe_impl::message_strobe_impl(pmt::pmt_t msg, float period_ms)
       : block("message_strobe",
-                 io_signature::make(0, 0, 0),
-                 io_signature::make(0, 0, 0)),
+              io_signature::make(0, 0, 0),
+              io_signature::make(0, 0, 0)),
         d_finished(false),
         d_period_ms(period_ms),
         d_msg(msg)
     {
       message_port_register_out(pmt::mp("strobe"));
-      d_thread = boost::shared_ptr<boost::thread>
-        (new boost::thread(boost::bind(&message_strobe_impl::run, this)));
+      d_thread = boost::shared_ptr<gr::thread::thread>
+        (new gr::thread::thread(boost::bind(&message_strobe_impl::run, this)));
 
       message_port_register_in(pmt::mp("set_msg"));
       set_msg_handler(pmt::mp("set_msg"),
diff --git a/gr-blocks/lib/message_strobe_impl.h 
b/gr-blocks/lib/message_strobe_impl.h
index 7a54680..0f37cd2 100644
--- a/gr-blocks/lib/message_strobe_impl.h
+++ b/gr-blocks/lib/message_strobe_impl.h
@@ -31,7 +31,7 @@ namespace gr {
     class BLOCKS_API message_strobe_impl : public message_strobe
     {
     private:
-      boost::shared_ptr<boost::thread> d_thread;
+      boost::shared_ptr<gr::thread::thread> d_thread;
       bool d_finished;
       float d_period_ms;
       pmt::pmt_t d_msg;
diff --git a/gr-blocks/lib/message_strobe_random_impl.cc 
b/gr-blocks/lib/message_strobe_random_impl.cc
index 80819fc..c62aad1 100644
--- a/gr-blocks/lib/message_strobe_random_impl.cc
+++ b/gr-blocks/lib/message_strobe_random_impl.cc
@@ -61,8 +61,8 @@ namespace gr {
 
       // set up ports
       message_port_register_out(pmt::mp("strobe"));
-      d_thread = boost::shared_ptr<boost::thread>
-        (new boost::thread(boost::bind(&message_strobe_random_impl::run, 
this)));
+      d_thread = boost::shared_ptr<gr::thread::thread>
+        (new gr::thread::thread(boost::bind(&message_strobe_random_impl::run, 
this)));
 
       message_port_register_in(pmt::mp("set_msg"));
       set_msg_handler(pmt::mp("set_msg"),
diff --git a/gr-blocks/lib/message_strobe_random_impl.h 
b/gr-blocks/lib/message_strobe_random_impl.h
index 32eddb5..2dcaa7e 100644
--- a/gr-blocks/lib/message_strobe_random_impl.h
+++ b/gr-blocks/lib/message_strobe_random_impl.h
@@ -36,7 +36,7 @@ namespace gr {
     class BLOCKS_API message_strobe_random_impl : public message_strobe_random
     {
     private:
-      boost::shared_ptr<boost::thread> d_thread;
+      boost::shared_ptr<gr::thread::thread> d_thread;
       bool d_finished;
       float d_mean_ms;
       float d_std_ms;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]