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.
int RiCOSTask_setEndOSTaskInCleanup (
RiCOSTask *const me, RiCBoolean val);
me
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.
The status. The possible values are as follows:
int RiCOSTask_setEndOSTaskInCleanup(
RiCOSTask * const me, RiCBoolean val)
{
if (me == NULL) {return 0;}
me->endOSTaskInCleanup = val;
return 1;
}