F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Os::TaskUserInterface Struct Reference

types and constants shared by users of Os::Task and by its implementations More...

#include <Os/Interfaces/TaskUserInterface.hpp>

Inheritance diagram for Os::TaskUserInterface:
Os::TaskCommon< T > Os::TaskInterface Os::Posix::Task::PosixTask Os::Stub::Task::StubTask

Classes

class  Arguments
 

Public Types

enum  Status {
  OP_OK, INVALID_HANDLE, INVALID_PARAMS, INVALID_PRIORITY,
  INVALID_STACK, UNKNOWN_ERROR, INVALID_AFFINITY, DELAY_ERROR,
  JOIN_ERROR, ERROR_RESOURCES, ERROR_PERMISSION, NOT_SUPPORTED,
  INVALID_STATE
}
 
enum  SuspensionType { INTENTIONAL, UNINTENTIONAL }
 
enum  State {
  NOT_STARTED, STARTING, RUNNING, SUSPENDED_INTENTIONALLY,
  SUSPENDED_UNINTENTIONALLY, EXITED, UNKNOWN
}
 
typedef void(* taskRoutine) (void *ptr)
 Prototype for task routine started in task context. More...
 

Static Public Attributes

static constexpr FwSizeType TASK_DEFAULT = std::numeric_limits<FwSizeType>::max()
 
static constexpr FwTaskPriorityType TASK_PRIORITY_DEFAULT = std::numeric_limits<FwTaskPriorityType>::max()
 

Detailed Description

types and constants shared by users of Os::Task and by its implementations

Definition at line 25 of file TaskUserInterface.hpp.

Member Typedef Documentation

◆ taskRoutine

typedef void(* Os::TaskUserInterface::taskRoutine) (void *ptr)

Prototype for task routine started in task context.

Definition at line 59 of file TaskUserInterface.hpp.

Member Enumeration Documentation

◆ State

Enumerator
NOT_STARTED 
STARTING 
RUNNING 
SUSPENDED_INTENTIONALLY 
SUSPENDED_UNINTENTIONALLY 
EXITED 
UNKNOWN 

Definition at line 56 of file TaskUserInterface.hpp.

◆ Status

Enumerator
OP_OK 

message sent/received okay

INVALID_HANDLE 

Task handle invalid.

INVALID_PARAMS 

started task with invalid parameters

INVALID_PRIORITY 

started task with invalid priority

INVALID_STACK 

started with invalid stack size

UNKNOWN_ERROR 

unexpected error return value

INVALID_AFFINITY 

unable to set the task affinity

DELAY_ERROR 

error trying to delay the task

JOIN_ERROR 

error trying to join the task

ERROR_RESOURCES 

unable to allocate more tasks

ERROR_PERMISSION 

permissions error setting-up tasks

NOT_SUPPORTED 

Task feature is not supported.

INVALID_STATE 

Task is in an invalid state for the operation.

Definition at line 38 of file TaskUserInterface.hpp.

◆ SuspensionType

Enumerator
INTENTIONAL 
UNINTENTIONAL 

Definition at line 54 of file TaskUserInterface.hpp.

Member Data Documentation

◆ TASK_DEFAULT

constexpr FwSizeType Os::TaskUserInterface::TASK_DEFAULT = std::numeric_limits<FwSizeType>::max()
static

Sentinel value to use a default value for the task argument to which this is supplied.

Implementations of TaskInterface::start() should make a special case to use some default value that is valid for the target platform.

Definition at line 30 of file TaskUserInterface.hpp.

◆ TASK_PRIORITY_DEFAULT

constexpr FwTaskPriorityType Os::TaskUserInterface::TASK_PRIORITY_DEFAULT = std::numeric_limits<FwTaskPriorityType>::max()
static

Sentinel value to use a default priority for the task.

Implementations of TaskInterface::start() should make a special case to use some default task priority that is valid for the target platform.

Definition at line 36 of file TaskUserInterface.hpp.


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