rtmlib
Public Member Functions | Public Attributes | List of all members
task Struct Reference

#include <task_compat.h>

Public Member Functions

int create_task (void *(*loop)(void *), const int pri, const int s_policy, int stack_size=STACK_SIZE)
 
 task (char const *id, void *(*loop)(void *), const int prio, const int sch_policy, const useconds_t p)
 

Public Attributes

pthread_t thread
 
pthread_mutex_t fmtx
 
pthread_cond_t cond
 
char const * tid
 
const useconds_t period
 
const int sched_policy
 
const int priority
 
bool running
 
status st
 
void *(* run )(void *)
 

Constructor & Destructor Documentation

◆ task()

task::task ( char const *  id,
void *(*)(void *)  loop,
const int  prio,
const int  sch_policy,
const useconds_t  p 
)
inline

Member Function Documentation

◆ create_task()

int task::create_task ( void *(*)(void *)  loop,
const int  pri,
const int  s_policy,
int  stack_size = STACK_SIZE 
)
inline

Member Data Documentation

◆ cond

pthread_cond_t task::cond

◆ fmtx

pthread_mutex_t task::fmtx

◆ period

const useconds_t task::period

◆ priority

const int task::priority

◆ run

void*(* task::run) (void *)

◆ running

bool task::running

◆ sched_policy

const int task::sched_policy

◆ st

status task::st

◆ thread

pthread_t task::thread

◆ tid

char const* task::tid

The documentation for this struct was generated from the following file: