forward declaration
More...
#include <Os/Task.hpp>
forward declaration
Definition at line 15 of file Task.hpp.
◆ taskRoutine
typedef void(* Os::Task::taskRoutine) (void *ptr) |
prototype for task routine started in task context
Definition at line 28 of file Task.hpp.
◆ TaskStatus
Enumerator |
---|
TASK_OK | message sent/received okay
|
TASK_INVALID_PARAMS | started task with invalid parameters
|
TASK_INVALID_STACK | started with invalid stack size
|
TASK_UNKNOWN_ERROR | unexpected error return value
|
TASK_INVALID_AFFINITY | unable to set the task affinity
|
TASK_DELAY_ERROR | error trying to delay the task
|
TASK_JOIN_ERROR | error trying to join the task
|
Definition at line 18 of file Task.hpp.
◆ Task()
constructor
Definition at line 8 of file Task.cpp.
◆ ~Task()
destructor
Definition at line 47 of file Task.cpp.
◆ delay()
delay the task
Definition at line 41 of file Task.cpp.
◆ getIdentifier()
I32 Os::Task::getIdentifier |
( |
void |
| ) |
|
◆ getNumTasks()
◆ getOsIdentifier()
TaskId Os::Task::getOsIdentifier |
( |
void |
| ) |
|
|
static |
◆ getRawHandle()
POINTER_CAST Os::Task::getRawHandle |
( |
| ) |
|
Returns the task-handle owned by this task
Definition at line 31 of file TaskCommon.cpp.
◆ isStarted()
bool Os::Task::isStarted |
( |
void |
| ) |
|
◆ isSuspended()
bool Os::Task::isSuspended |
( |
void |
| ) |
|
check with OS to see if it is suspended already
Definition at line 67 of file Task.cpp.
◆ join()
Wait for task to finish.
Definition at line 72 of file Task.cpp.
◆ registerTaskRegistry()
void Os::Task::registerTaskRegistry |
( |
TaskRegistry * |
registry | ) |
|
|
static |
◆ resume()
void Os::Task::resume |
( |
void |
| ) |
|
resume execution of task
Definition at line 62 of file Task.cpp.
◆ setStarted()
void Os::Task::setStarted |
( |
bool |
started | ) |
|
set task to started when thread is fully up. Avoids a VxWorks race condition.
Definition at line 23 of file TaskCommon.cpp.
◆ start()
start the task
Definition at line 16 of file Task.cpp.
◆ suspend()
void Os::Task::suspend |
( |
bool |
onPurpose = false | ) |
|
suspend task
Definition at line 57 of file Task.cpp.
◆ wasSuspended()
bool Os::Task::wasSuspended |
( |
void |
| ) |
|
returns whether or not task was suspended on purpose
Definition at line 27 of file TaskCommon.cpp.
The documentation for this class was generated from the following files: