linux下获取线程号

#include <sys/syscall.h> 
pid_t gettid()
{
    return syscall(SYS_gettid); 
}


posted @ 2013-09-17 17:36  春文秋武  阅读(469)  评论(0编辑  收藏  举报