This method gets the handle to the active task.
RiCOSHandle RiCOSTask_getCurrentTaskHandle();
The handle to the active task
RiCOSHandle RiCOSTask_getCurrentTaskHandle() { return (RiCOSHandle)taskIdSelf(); }