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