A simple program is: I would like to get the thread ID of both of the threads using this gettid function. I do not want to do the sysCall directly. I want to use this funct
This is a silly glibc bug. Work around it like this:
#include #include #define gettid() syscall(SYS_gettid)