Loading...
Searching...
No Matches
realtime.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2006,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_REALTIME_H
#define INCLUDED_GR_REALTIME_H
#include <gnuradio/api.h>
namespace gr {
typedef enum { RT_OK = 0, RT_NOT_IMPLEMENTED, RT_NO_PRIVS, RT_OTHER_ERROR } rt_status_t;
enum rt_sched_policy {
RT_SCHED_RR = 0, // round robin
RT_SCHED_FIFO = 1, // first in first out
};
/*!
* \brief If possible, enable high-priority "real time" scheduling.
* \ingroup misc
*/
GR_RUNTIME_API rt_status_t enable_realtime_scheduling();
} /* namespace gr */
#endif /* INCLUDED_GR_REALTIME_H */
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
gr::enable_realtime_scheduling
GR_RUNTIME_API rt_status_t enable_realtime_scheduling()
If possible, enable high-priority "real time" scheduling.
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
gr::rt_status_t
rt_status_t
Definition realtime.h:18
gr::RT_OK
@ RT_OK
Definition realtime.h:18
gr::RT_OTHER_ERROR
@ RT_OTHER_ERROR
Definition realtime.h:18
gr::RT_NO_PRIVS
@ RT_NO_PRIVS
Definition realtime.h:18
gr::RT_NOT_IMPLEMENTED
@ RT_NOT_IMPLEMENTED
Definition realtime.h:18
gr::rt_sched_policy
rt_sched_policy
Definition realtime.h:20
gr::RT_SCHED_FIFO
@ RT_SCHED_FIFO
Definition realtime.h:22
gr::RT_SCHED_RR
@ RT_SCHED_RR
Definition realtime.h:21