The cleanup method cleans
up the memory after an RiCOSMutex object is destroyed.
Signaturevoid RiCOSMutex_cleanup (RiCOSMutex * const me);
Parametersme
The deleted RiCOSMutex object
to clean up after
Examplevoid RiCOSMutex_cleanup(RiCOSMutex * const me)
{
if (me != NULL && me->hMutex !=NULL) {
semDelete(me->hMutex);
me->hMutex = NULL;
}
}