summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/thread/thread.h
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2017-04-13 23:38:12 -0700
committerAndrej Rode <mail@andrejro.de>2017-04-23 16:09:13 -0700
commit10b7f835854f46ac390fdb6954d312a6b0ba30e9 (patch)
tree681b9a7b2a66eb5d09804d1acfff16017b686775 /gnuradio-runtime/include/gnuradio/thread/thread.h
parentd1a5dbf904a4512e6c9c14720a40cd3727650aba (diff)
runtime: add barrier to synchronize block startup
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/thread/thread.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/thread/thread.h4
1 files changed, 4 insertions, 0 deletions
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.
*/