void os_sched_set_current_task(struct os_task *t)
Sets the currently running task to ‘t’.
This is called from architecture specific context switching code to update scheduler state. Call is made when state of the task ‘t’ is made running.
Arguments | Description |
---|---|
t | Pointer to a task |
N/A
This function simply sets the global variable holding the currently running task. It does not perform a context switch or change the os run or sleep list.