setEndOSTaskInCleanup

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.

Signature
int RiCOSTask_setEndOSTaskInCleanup (
   RiCOSTask *const me, RiCBoolean val);
Parameters
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.
Returns

The status. The possible values are as follows:

Example
int RiCOSTask_setEndOSTaskInCleanup(
   RiCOSTask * const me, RiCBoolean val)
{
   if (me == NULL) {return 0;}

   me->endOSTaskInCleanup = val;
   return 1;
}

Feedback