#include <ctl_api.h> extern CTL_TASK_t *ctl_task_list;
ctl_task_list points to the CTL_TASK_t structure of the highest priority task that isn’t executing. It is an error if ctl_task_list takes the NULL value.
ctl_task_list is provided in every implementation of the CrossWorks tasking library.