suspend

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

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

The RiCOSTask object to suspend

Returns

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

Example
RiCOSResult RiCOSTask_suspend(RiCOSTask * const me)
{
   if (me == NULL) {return 0;}

   (void)taskSuspend(me->hThread);
   return 1;
}

Feedback