thrd_current 子例程
用途
此子例程标识正在请求的线程。
库
标准 C 库 (libc.a)
语法
#include <threads.h>thrd_t thrd_current(void); 描述
thrd_current 子例程标识正在请求的线程。
参数
无
返回值
thrd_current 子例程返回正在请求的线程的标识。
文件
| 项 | 描述 |
|---|---|
| threads.h | 标准宏,数据类型和子例程由 threads.h 文件定义。 |
此子例程标识正在请求的线程。
标准 C 库 (libc.a)
#include <threads.h>thrd_t thrd_current(void); thrd_current 子例程标识正在请求的线程。
无
thrd_current 子例程返回正在请求的线程的标识。
| 项 | 描述 |
|---|---|
| threads.h | 标准宏,数据类型和子例程由 threads.h 文件定义。 |