您的位置:首页 > 其它

pthread_t描述说明

2013-11-12 22:53 211 查看
在posix线程api中,通过pthread_self(void) 函数获取当前线程的id

线程id的类型为pthread_t

pthread.h 第267行声明了pthread_self (void)的函数,格式如下

extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));

在pthreadtypes.h第50行定义了:

typedef unsigned long int pthread_t;//声明为无符号长整型
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐