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;//声明为无符号长整型
线程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;//声明为无符号长整型
相关文章推荐
- 获取数据库中的所有用户表、取数据表的描述信息包括描述说明
- svn配置库各种图标提示的状态说明!超详细文字描述。
- C# 为自己的类添加说明描述
- 关于微信二次分享,描述变链接的解决方法(一)----文档说明
- Python中list的详细操作描述(举例说明)
- JNI学习积累之二 ---- 数据类型映射、域描述符说明
- n个并发进程共用一个公共变量Q,写出用信号灯实现n个进程互斥的程序描述,给出信号灯值得取值范围,并说明每个取值范围的物理意义。
- 关于pthread_cond_signal与pthread_cond_broadcast的使用说明
- 关于微信二次分享,描述变链接的解决方法(一)----文档说明
- JNI学习积累之二 ---- 数据类型映射、域描述符说明
- [导入]C# 为自己的类添加说明描述
- Python中list的详细操作描述(举例说明)
- 1.说说你个人理解的存储解决方案的发展趋势,作图描述。 11.png 2.画一张说明ASM实例同数据库实例协同工作的原理图,并给出语言描述。 14.png 一个监听器可以为多个实例
- JNI学习积累之二 ---- 数据类型映射、域描述符说明
- JNI学习积累之二 ---- 数据类型映射、域描述符说明
- MSSql使用SQL语句快速查看表对的就说明,及表字段描述及字段类型
- pthread_create()函数说明
- IntelliJ IDEA 15 创建maven项目 说明 创建Maven项目的方式:手工创建 好处:参考IntelliJ IDEA 14 创建maven项目二(此文章描述了用此方式创建Maven项目
- 自定义表单-加强配置工具的说明及描述功能
- Python中list的详细操作描述(举例说明)