The reset method forces the event flag into a known state. This method is called almost immediately prior to a wait.
RiCOSResult RiCOSEventFlag_reset(
RiCOSEventFlag *const me);
me
The RiCOSEventFlag object
The RiCOSResult object, as defined in the RiCOS*.h files
RiCOSResult RiCOSEventFlag_reset(
RiCOSEventFlag * const me)
{
if (me == NULL) {return 0;}
semTake(me->hEventFlag, NO_WAIT);
return (RiCOSResult)1;
}