thrd_current

< c‎ | thread
定义于头文件 <threads.h>
thrd_t thrd_current(void);
(C11 起)

返回调用方线程的标识符。

参数

(无)

返回值

调用方线程的标识符。

引用

  • C11 标准(ISO/IEC 9899:2011):
  • 7.26.5.2 The thrd_current function (p: 383)

参阅