This method creates a new RiCOSTask object.
SignatureRiCOSTask *RiCOSTask_create (RiCOSTaskEndCallBack tfunc,
void *param, const char *name,
const long stackSize);
Parameterstfunc
The callback function that ends the
current operating system task
param
The parameters of the callback function
name
The name of the task
stackSize
The size of the stack
ReturnsThe newly created RiCOSTask
ExampleRiCOSTask * RiCOSTask_create(RiCOSTaskEndCallBack tfunc,
void * param, const char * name, const long stackSize)
{
RiCOSTask * me = malloc(sizeof(RiCOSTask));
RiCOSTask_init(me, tfunc, param, name, stackSize);
return me;
}