Linux获取线程tid线程名
//thread name
char cThreadName[
32
] = {
0
};
prctl(PR_GET_NAME, (unsigned long)chThreadName);
//tid
syscall(SYS_gettid)