THRD_EQUAL(3C) Standard C Library Functions THRD_EQUAL(3C)
thrd_equal - determine if threads are equal
#include <threads.h>
int
thrd_equal(thrd_t thrd0, thrd_t thrd1);
The thrd_equal() function compares thrd0 and thrd1 and determines
whether or not they refer to the same thread.
The thrd_equal() function returns non-zero if thrd0 and thrd1 refer to
the same thread. Otherwise, 0 is returned, indicating that thrd0 and
thrd1 are different threads.
Standard
MT-LEVEL
MT-Safe
attributes(7), threads(7)
illumos January 19, 2017 illumos
NAME
thrd_equal - determine if threads are equal
SYNOPSIS
#include <threads.h>
int
thrd_equal(thrd_t thrd0, thrd_t thrd1);
DESCRIPTION
The thrd_equal() function compares thrd0 and thrd1 and determines
whether or not they refer to the same thread.
RETURN VALUES
The thrd_equal() function returns non-zero if thrd0 and thrd1 refer to
the same thread. Otherwise, 0 is returned, indicating that thrd0 and
thrd1 are different threads.
INTERFACE STABILITY
Standard
MT-LEVEL
MT-Safe
SEE ALSO
attributes(7), threads(7)
illumos January 19, 2017 illumos