F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Task.cpp File Reference
#include <Os/Task.hpp>
#include <Fw/Types/Assert.hpp>
#include <pthread.h>
#include <cerrno>
#include <cstring>
#include <ctime>
#include <cstdio>
#include <new>
#include <sched.h>
#include <climits>
#include <Fw/Logger/Logger.hpp>

Go to the source code of this file.

Namespaces

namespace  Os
 

Typedefs

typedef void *(* pthread_func_ptr) (void *)
 

Functions

void * pthread_entry_wrapper (void *arg)
 
void Os::validate_arguments (NATIVE_UINT_TYPE &priority, NATIVE_UINT_TYPE &stack, NATIVE_UINT_TYPE &affinity, bool expect_perm)
 
Task::TaskStatus Os::set_stack_size (pthread_attr_t &att, NATIVE_UINT_TYPE stack)
 
Task::TaskStatus Os::set_priority_params (pthread_attr_t &att, NATIVE_UINT_TYPE priority)
 
Task::TaskStatus Os::set_cpu_affinity (pthread_attr_t &att, NATIVE_UINT_TYPE cpuAffinity)
 
Task::TaskStatus Os::create_pthread (NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, pthread_t *&tid, void *arg, bool expect_perm)
 

Variables

static const NATIVE_INT_TYPE SCHED_POLICY = SCHED_RR
 

Typedef Documentation

◆ pthread_func_ptr

typedef void *(* pthread_func_ptr) (void *)

Definition at line 20 of file Task.cpp.

Function Documentation

◆ pthread_entry_wrapper()

void * pthread_entry_wrapper ( void *  arg)

Definition at line 22 of file Task.cpp.

Variable Documentation

◆ SCHED_POLICY

const NATIVE_INT_TYPE SCHED_POLICY = SCHED_RR
static

Definition at line 18 of file Task.cpp.