GNU Radio 3.7.3 C++ API
|
#include <gnuradio/api.h>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/condition_variable.hpp>
#include <vector>
Go to the source code of this file.
Namespaces | |
gr | |
Include this header to use the message passing features. | |
gr::thread | |
Typedefs | |
typedef boost::thread | gr::thread::thread |
typedef boost::mutex | gr::thread::mutex |
typedef boost::unique_lock < boost::mutex > | gr::thread::scoped_lock |
typedef boost::condition_variable | gr::thread::condition_variable |
typedef pthread_t | gr::thread::gr_thread_t |
a system-dependent typedef for the underlying thread type. More... | |
Functions | |
GR_RUNTIME_API gr_thread_t | gr::thread::get_current_thread_id () |
Get the current thread's ID as a gr_thread_t. More... | |
GR_RUNTIME_API void | gr::thread::thread_bind_to_processor (const std::vector< int > &mask) |
Bind the current thread to a set of cores. More... | |
GR_RUNTIME_API void | gr::thread::thread_bind_to_processor (int n) |
Convineince function to bind the current thread to a single core. More... | |
GR_RUNTIME_API void | gr::thread::thread_bind_to_processor (gr_thread_t thread, const std::vector< int > &mask) |
Bind a thread to a set of cores. More... | |
GR_RUNTIME_API void | gr::thread::thread_bind_to_processor (gr_thread_t thread, unsigned int n) |
Convineince function to bind the a thread to a single core. More... | |
GR_RUNTIME_API void | gr::thread::thread_unbind () |
Remove any thread-processor affinity for the current thread. More... | |
GR_RUNTIME_API void | gr::thread::thread_unbind (gr_thread_t thread) |
Remove any thread-processor affinity for a given thread ID. More... | |
GR_RUNTIME_API int | gr::thread::thread_priority (gr_thread_t thread) |
get current thread priority for a given thread ID More... | |
GR_RUNTIME_API int | gr::thread::set_thread_priority (gr_thread_t thread, int priority) |
get current thread priority for a given thread ID More... | |