TTaskStartupProc Type
Declaration
typedef void (CALLBACK * TTaskStartupProc)(void);
Description

This type defines the function prototype for the internal task startup routine. Functions matching this signature accept no parameters and do not return a value.

This type is utilized exclusively by the operating system to bootstrap task execution. When implementing context switching for a new architecture, it is critical to understand that this function never returns. Consequently, when setting up the initial stack frame, a return address is generally not required (or should point to an error handler), as the flow of execution will never revert to a caller.

Version:1.0
Header file:AR_API.h
See also: CALLBACK, context switching, operating system
SpaceShadow documentation