This method creates a new RiCOSTask object.
RiCOSTask *RiCOSTask_create (RiCOSTaskEndCallBack tfunc,
void *param, const char *name,
const long stackSize);
tfunc
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
The newly created RiCOSTask
RiCOSTask * 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;
}