create

This method creates a new RiCOSTask object.

Signature
RiCOSTask *RiCOSTask_create (RiCOSTaskEndCallBack tfunc,
   void *param, const char *name, 
   const long stackSize);
Parameters
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

Returns

The newly created RiCOSTask

Example
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;
}

Feedback