Adelsbach Enhanced Threading Library

Manual Pages (DD-00013-001)

Enhanced Threading Library > thrd_current (3)
HTML TXT PDF PS
thrd_current(3) Library Functions Manual thrd_current(3)

thrd_currentobtain current thread ID

library “threads”
#include <threads.h>

thrd_t
thrd_current();

The function () will return the ID of the current thread.

The function thrd_current() will return the current thread ID.

thrd_create(3) thrd_exit(3) thrd_yield(3) thrd_detach(3) thrd_join(3) thrd_equal(3) thrd_sleep(3)

The thrd_current() function first appeared in the C11 standard ISO/IEC 9899:2011.

Jan Adelsbach <jan@jadelsbach.de>

May 9, 2020 Debian