thrd_current 子例程

用途

此子例程标识正在请求的线程。

标准 C 库 (libc.a)

语法

#include <threads.h>
thrd_t thrd_current(void);

描述

thrd_current 子例程标识正在请求的线程。

参数

返回值

thrd_current 子例程返回正在请求的线程的标识。

文件

描述
threads.h 标准宏,数据类型和子例程由 threads.h 文件定义。