This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using hook and retrieving information about task

Other Parts Discussed in Thread: SYSBIOS

Hi,

I have some questions.

i have added these hooks in the config file

Task.addHookSet({

exitFxn: '&myExit'

deleteFxn: '&myDelete'

});

Why if i program using C++ cannot put a static c++ function like 'CMyThread::myExit'

I need to pass through a c wrapper function....

The hooks works well, i can retrieve information about Task_struct but i do not see 

how to retrieve information about Task_params.

Any idea?

Regards

  • Hi Fortunato,

    You need to use a wrapper function due to C++ name mangling. This is discussed in section 1.5, "Using C++ with SYS/BIOS", in the SYS/BIOS User's Guide.

    If you check out <BIOS_INSTALL_DIR>/packages/ti/sysbios/knl/Task.c, the function Task_Instance_init() shows how the Task creation parameters are consumed and recorded into the Task structure. A word of caution: the Task object structure is an internal structure to SYSBIOS. So its definition is subject to change without notice in future revisions of the kernel. Please keep that in mind if you are writing code based on the internal fields of the Task structure.

    Best regards,
    Vincent

  • Thank you,

    This help. 

    Regards