Search code examples
c++rhapsody

Access current task PID in IBM Rhapsody 9.0.1


I am using IBM Rhapsody 9.0.1 Following this link I am trying to obtain the current task's handle, or even the OS Pid, of the current process/thread. (we are migrating from an SDL tool called TAU to Rhapsody)

Unfortunately am not able to call/reference the function [getOsHandle()]2 of the OXF. My class is active hence, I can see the import of <oxf\omthread.h> in the generated code but i cannot call the function or even use the type RiCOSHandle

How can I add the OSAL classes to my package?


Solution

  • (int)(reinterpret_cast<intptr_t>(this->getOsHandle())))