RTXI  3.0.0
The Real-Time eXperiment Interface Reference Manual
Data Structures | Namespaces | Functions | Variables
rtos.hpp File Reference
#include <any>
#include <functional>
#include <thread>
#include <errno.h>
#include <string.h>
#include "debug.hpp"
#include "fifo.hpp"
Include dependency graph for rtos.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RT::OS::Task
 

Namespaces

 RT
 
 RT::OS
 

Functions

int RT::OS::initiate (RT::OS::Task *task)
 
void RT::OS::shutdown (RT::OS::Task *task)
 
void RT::OS::deleteTask (Task *task)
 
int RT::OS::setPeriod (Task *task, int64_t period)
 
int64_t RT::OS::getPeriod ()
 
void RT::OS::sleepTimestep (Task *task)
 
bool RT::OS::isRealtime ()
 
int64_t RT::OS::getTime ()
 
double RT::OS::getCpuUsage ()
 
int RT::OS::createTask (Task *task, void(*func)(void *), void *arg)
 
void RT::OS::renameOSThread (std::thread &thread, const std::string &name)
 

Variables

const int64_t RT::OS::SECONDS_TO_NANOSECONDS
 
const int64_t RT::OS::DEFAULT_PERIOD = 1000000
 
const uint64_t RT::OS::DEFAULT_FIFO_SIZE = 255
 
const size_t RT::OS::PROCESSOR_COUNT = std::thread::hardware_concurrency()