AutosarOS
|
Implementation of task management. More...
#include "Task.h"
#include "OS.h"
#include "assert.h"
#include "Resource.h"
#include <util/atomic.h>
Go to the source code of this file.
Functions | |
StatusType | Task_ActivateTask (TaskType TaskID) |
Activate a task. More... | |
StatusType | Task_ChainTask (TaskType TaskID) |
Chain task. More... | |
StatusType | Task_TerminateTask (void) |
Terminate active task. More... | |
StatusType | Task_Schedule (void) |
Reschedule current task. More... | |
StatusType | Task_GetTaskID (TaskRefType TaskID) |
Return the ID of the task currently running. More... | |
StatusType | Task_GetTaskState (TaskType TaskID, TaskStateRefType State) |
Return the state of a task. More... | |
void | Task_startup (void) |
Startup function for task management. More... | |
Implementation of task management.
Definition in file Task.c.
StatusType Task_ActivateTask | ( | TaskType | TaskID | ) |
Activate a task.
The task is transferred from the suspended state into the ready state.
TaskID | ID of the task to be activated |
Definition at line 21 of file Task.c.
StatusType Task_ChainTask | ( | TaskType | TaskID | ) |
Chain task.
The current is transferred from the running state into the suspended state. The specified task will be transferred into the ready state. The specified task may be identical to the current task.
TaskID | ID of the task to be chained |
Definition at line 54 of file Task.c.
StatusType Task_GetTaskID | ( | TaskRefType | TaskID | ) |
StatusType Task_GetTaskState | ( | TaskType | TaskID, |
TaskStateRefType | State | ||
) |
StatusType Task_Schedule | ( | void | ) |
Reschedule current task.
If a higher priority task is ready it will be executed. Otherwise the calling task is continued. This allows a processor assignment to other tasks with lower or equal priority than the ceiling priority of the current task.
This service has no influence on preemptive tasks with no internal resource.
Definition at line 157 of file Task.c.
void Task_startup | ( | void | ) |
StatusType Task_TerminateTask | ( | void | ) |