| thrd_equal(3) | Library Functions Manual | thrd_equal(3) |
NAME
thrd_equal —
compare thread IDs
SYNOPSIS
library “threads”
#include <threads.h>
int
thrd_equal(thrd_t
t0, thrd_t t1);
DESCRIPTION
The function
thrd_equal()
determines whether the two given thread identifiers t0
and t1 are equal.
RETURN VALUES
The function thrd_equal() returns non-zero
if t0 and t1 refer to the same
thread, otherwise 0 will be returned.
SEE ALSO
thrd_create(3) thrd_exit(3) thrd_yield(3) thrd_detach(3) thrd_join(3) thrd_current(3) thrd_sleep(3)
HISTORY
The thrd_equal() function first appeared
in the C11 standard ISO/IEC 9899:2011.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
| May 9, 2020 | Linux 6.13.6-1-default |