thrd_current - cppreference.com

From cppreference.com

thrd_tthrd_current(void);(since C11)Returns the identifier of the calling thread.

Parameters

(none)

Return value

The identifier of the calling thread.

References

C17 standard (ISO/IEC 9899:2018):

7.26.5.2 The thrd_current function (p: 279)

C11 standard (ISO/IEC 9899:2011):

7.26.5.2 The thrd_current function (p: 383)

See also