 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
41 void suspend(
bool onPurpose =
false);
56 POINTER_CAST m_handle;
63 bool m_suspendedOnPurpose;
void setStarted(bool started)
set task to started when thread is fully up. Avoids a VxWorks race condition.
virtual void removeTask(Task *task)=0
remove a task from the registry
void suspend(bool onPurpose=false)
suspend task
@ TASK_UNKNOWN_ERROR
unexpected error return value
static NATIVE_INT_TYPE getNumTasks(void)
TaskRegistry()
constructor for task registry
void(* taskRoutine)(void *ptr)
prototype for task routine started in task context
static void registerTaskRegistry(TaskRegistry *registry)
bool wasSuspended(void)
returns whether or not task was suspended on purpose
void resume(void)
resume execution of task
virtual void addTask(Task *task)=0
Add a task to the registry.
@ TASK_INVALID_AFFINITY
unable to set the task affinity
@ TASK_OK
message sent/received okay
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
@ TASK_INVALID_PARAMS
started task with invalid parameters
@ TASK_DELAY_ERROR
error trying to delay the task
bool isStarted(void)
check to see if task is started
virtual ~TaskRegistry()
destructor for task registry
POINTER_CAST getRawHandle()
static TaskStatus delay(NATIVE_UINT_TYPE msecs)
delay the task
TaskStatus start(const Fw::StringBase &name, NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, taskRoutine routine, void *arg, NATIVE_INT_TYPE cpuAffinity=-1)
start the task
bool isSuspended(void)
check with OS to see if it is suspended already
virtual ~Task()
destructor
I32 getIdentifier(void)
get the identifier for the task
Declares ISF basic types.
static TaskId getOsIdentifier(void)
int NATIVE_INT_TYPE
native integer type declaration
@ TASK_INVALID_STACK
started with invalid stack size
@ TASK_JOIN_ERROR
error trying to join the task
TaskStatus join(void **value_ptr)
Wait for task to finish.