This method starts executing the task. Initially, tasks are suspended until start is called.
RiCOSResult RiCOSTask_start (RiCOSTask *const me);
me
The RiCOSTask object to start
The RiCOSResult object, as defined in the RiCOS*.h files
RiCOSResult RiCOSTask_start(RiCOSTask * const me)
{
if (me == NULL) {return 0;}
if (RiCOSEventFlag_exists(&me->m_SuspEventFlag)) {
RiCOSEventFlag_signal(&me->m_SuspEventFlag);
RiCOSEventFlag_cleanup(&me->m_SuspEventFlag);
}
else {
RiCOSTask_resume(me);
}
return 1;
}