From 10b7f835854f46ac390fdb6954d312a6b0ba30e9 Mon Sep 17 00:00:00 2001 From: Andrej Rode <mail@andrejro.de> Date: Thu, 13 Apr 2017 23:38:12 -0700 Subject: runtime: add barrier to synchronize block startup --- gnuradio-runtime/include/gnuradio/thread/thread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnuradio-runtime/include/gnuradio/thread/thread.h') diff --git a/gnuradio-runtime/include/gnuradio/thread/thread.h b/gnuradio-runtime/include/gnuradio/thread/thread.h index a58d172867..20a94cba52 100644 --- a/gnuradio-runtime/include/gnuradio/thread/thread.h +++ b/gnuradio-runtime/include/gnuradio/thread/thread.h @@ -27,6 +27,8 @@ #include <boost/thread/mutex.hpp> #include <boost/thread/locks.hpp> #include <boost/thread/condition_variable.hpp> +#include <boost/thread/barrier.hpp> +#include <boost/shared_ptr.hpp> #include <vector> #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) @@ -46,6 +48,8 @@ namespace gr { typedef boost::mutex mutex; typedef boost::unique_lock<boost::mutex> scoped_lock; typedef boost::condition_variable condition_variable; + typedef boost::barrier barrier; + typedef boost::shared_ptr<barrier> barrier_sptr; /*! \brief a system-dependent typedef for the underlying thread type. */ -- cgit v1.2.3