TTaskProc type
Declaration:
typedef ERROR (* TTaskProc)(PVOID Arg);
Description:

The TTaskProc type defines a function pointer for a task's entry point.

The argument passed via the Arg parameter is a PVOID pointer, which is specified during task creation using the osCreateTask function.

When the main task function returns, the task is automatically terminated, and its exit code is set to the function's return value. By convention, this return value indicates the task termination status and should be set to ERR_NO_ERROR upon successful completion. However, this is ultimately determined by the application developer and may be used to convey other status codes. The creating a task example demonstrates how to declare a task entry function and initiate a new task.

Version:1.0
Header file:OS_Task.h (include OS_API.h)
See also: ERR_NO_ERROR, ERROR, creating a task, PVOID, osCreateTask, tasks
SpaceShadow documentation