Part Number: MSP432E411Y-BGAEVM
I am porting a Linux C++ application to run under TI RTOS.
To use overridden, derived class methods as the task function, I have implemented an extern "C" function as an intermediate step -
extern "C" void * ThreadEntry(CBaseThreadClass * arg) { return arg->ThreadRuntime(); }
This just needs to be passed to pthread_create with "this" as the argument.
bool CBaseThreadClass::StartThread() { ... int retc = pthread_create(&m_thread, &m_attributes, (THREADFUNCPTR)ThreadEntry, this); ...
Seems to work - so far, so good!
Unfortunately, in the ROV, all tasks have "ThreadEntry" in the "fxn" column, so it is a bit hard to tell them apart.
I see a nice useful looking column called "label". This is empty for all but "ti.sysbios.knl.Task.IdleTask". Is there a way that I can set this for my tasks so I can tell which is which?
Thanks