How to pass parent thread id to LLVM function hook in Child thread?

114 Views Asked by At

I have a hook function like this

void newThreadCreated(void *ptid) {}

I want to insert this function into child thread's function. The issue is how to pass parent thread id (ptid) to this function. Any concrete solution or thoughts?

Thanks in Advance!

0

There are 0 best solutions below