diff options
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/thread/thread.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/thread/thread.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gnuradio-runtime/include/gnuradio/thread/thread.h b/gnuradio-runtime/include/gnuradio/thread/thread.h index 04d67d0821..a0c9e4f09d 100644 --- a/gnuradio-runtime/include/gnuradio/thread/thread.h +++ b/gnuradio-runtime/include/gnuradio/thread/thread.h @@ -138,6 +138,18 @@ namespace gr { */ GR_RUNTIME_API void thread_unbind(gr_thread_t thread); + /*! \brief get current thread priority for a given thread ID + * + * Note: this does not work on OSX + */ + GR_RUNTIME_API int thread_priority(gr_thread_t thread); + + /*! \brief get current thread priority for a given thread ID + * + * Note: this does not work on OSX + */ + GR_RUNTIME_API int set_thread_priority(gr_thread_t thread, int priority); + } /* namespace thread */ } /* namespace gr */ |