BOOL osResumeTask( HANDLE Handle );
A handle to the task to be resumed.
Returns TRUE on success or FALSE on failure. Use the osGetLastError function to obtain extended error information.
This function resumes a task that was previously suspended.
The function can be called before the system starts, from within an interrupt service routine, or by a running task. If the resumed task has a higher priority than the current task, it will be executed immediately. When called from an interrupt handler, the task with the highest priority will be scheduled to run once the handler finishes. If the resumed task's priority is equal to or lower than the current task, its placement in the ready-to-run queue depends on the OS_RESUME_IMMEDIATELY constant: it is placed at the end of the queue if the constant is 0, or at the beginning if it is 1.
This function is available only when the OS_SUSP_RES_TASK_FUNC constant is set to 1. If this functionality is not required, it can be disabled to reduce the size of the output code.
| Version: | 1.0 |
|---|---|
| Header file: | OS_Task.h (include OS_API.h) |
| See also: | BOOL, FALSE, HANDLE, OS_SUSP_RES_TASK_FUNC, OS_RESUME_IMMEDIATELY, osGetLastError, osSuspendTask, tasks, task suspending and resuming, TRUE |