resume

This method resumes a suspended task. This method is not used in generated code—it is used only for advanced scheduling.

The suspend and resume methods provide a way of stopping and restarting a task. Tasks usually block when waiting for a resource, such as a mutex or an event flag, so both are rarely used.

Signature
RiCOSResult RiCOSTask_resume (RiCOSTask *const me);
Parameters
me

The RiCOSTask object to resume

Returns

The RiCOSResult object, as defined in the RiCOS*.h files

Example
RiCOSResult RiCOSTask_resume(RiCOSTask * const me)
{
   if (me == NULL) {return 0;}
   (void)taskResume(me->hThread);
   return 1;
}

Feedback