Documentation Home
>
多线程编程指南
>
第 2 章 基本线程编程
>
线程库
>
获取线程标识符
> pthread_self 语法
多线程编程指南
Previous
: 获取线程特定数据
Next
: pthread_self 返回值
pthread_self
语法
pthread_t pthread_self(void);
#include <pthread.h> pthread_t
tid
;
tid
= pthread_self();
Previous
: 获取线程特定数据
Next
: pthread_self 返回值
© 2010, Oracle Corporation and/or its affiliates