free

The free method frees the lock, possibly causing the underlying operating system to reschedule tasks.

In environments other than pSOSystem, this is a macro that implements the same interface.

Signature
RiCOSResult RiCOSMutex_free (RiCOSMutex *const me);
Parameters
me

The RiCOSMutex object to free

Returns

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

Example
RiCOSResult RiCOSMutex_free(RiCOSMutex * const me)
{
   if (me == NULL) { return 0; }

   if (semGive(me->hMutex)==OK)
      return 1;
   else
      return 0;
}

Feedback