Adelsbach Enhanced Threading Library

Manual Pages (DD-00013-001)

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

thrd_equalcompare thread IDs

library “threads”
#include <threads.h>

int
thrd_equal(thrd_t t0, thrd_t t1);

The function () determines whether the two given thread identifiers t0 and t1 are equal.

The function thrd_equal() returns non-zero if t0 and t1 refer to the same thread, otherwise 0 will be returned.

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

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

Jan Adelsbach <jan@jadelsbach.de>

May 9, 2020 Debian