This method determines whether
destruction of the RiCOSTask class should kill the
operating system task associated with the class. If the method returns RiCTRUE,
the task will be ended at the RiCOSTask cleanup.
Signatureint RiCOSTask_setEndOSTaskInCleanup (
RiCOSTask *const me, RiCBoolean val);
Parametersme
The RiCOSTask object.
val
The possible values are as follows:
RiCTRUE—The task is ended as part of the object's destruction process.
RiCFALSE—The task is not ended when the object is destroyed.
ReturnsThe
status. The possible values are as follows:
Exampleint RiCOSTask_setEndOSTaskInCleanup(
RiCOSTask * const me, RiCBoolean val)
{
if (me == NULL) {return 0;}
me->endOSTaskInCleanup = val;
return 1;
}