名前空間
変種

thrd_current

提供: cppreference.com
< c | thread
<tbody> </tbody>
ヘッダ <threads.h> で定義
thrd_t thrd_current(void);
(C11以上)

呼び出し元スレッドの識別子を返します。

引数

(なし)

戻り値

呼び出し元スレッドの識別子。

参考文献

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

関連項目