16#ifndef INCLUDED_THREAD_GROUP_H
17#define INCLUDED_THREAD_GROUP_H
22#include <shared_mutex>
23#include <unordered_set>
39 void add_thread(std::unique_ptr<boost::thread> thrd)
noexcept;
43 size_t size() const noexcept;
46 std::unordered_set<
std::unique_ptr<boost::
thread>> m_threads;
47 mutable
std::shared_mutex m_mutex;
Definition thread_group.h:31
void add_thread(std::unique_ptr< boost::thread > thrd) noexcept
thread_group & operator=(const thread_group &)=delete
thread_group(const thread_group &)=delete
void remove_thread(boost::thread *thrd) noexcept
boost::thread * create_thread(const std::function< void()> &threadfunc)
size_t size() const noexcept
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
boost::thread thread
Definition thread.h:36
GNU Radio logging wrapper.
Definition basic_block.h:29