xref: /illumos-gate/usr/src/man/man3c/thrd_equal.3c (revision 71815ce76261aa773c97600750fdce92334d1990)
1.\"
2.\" This file and its contents are supplied under the terms of the
3.\" Common Development and Distribution License ("CDDL"), version 1.0.
4.\" You may only use this file in accordance with the terms of version
5.\" 1.0 of the CDDL.
6.\"
7.\" A full copy of the text of the CDDL should have accompanied this
8.\" source.  A copy of the CDDL is also available via the Internet at
9.\" http://www.illumos.org/license/CDDL.
10.\"
11.\"
12.\" Copyright 2017 Joyent, Inc.
13.\"
14.Dd "Jan 19, 2017"
15.Dt THRD_EQUAL 3C
16.Os
17.Sh NAME
18.Nm thrd_equal
19.Nd determine if threads are equal
20.Sh SYNOPSIS
21.In threads.h
22.Ft int
23.Fo thrd_equal
24.Fa "thrd_t thrd0"
25.Fa "thrd_t thrd1"
26.Fc
27.Sh DESCRIPTION
28The
29.Fn thrd_equal
30function compares
31.Fa thrd0
32and
33.Fa thrd1
34and determines whether or not they refer to the same thread.
35.Sh RETURN VALUES
36The
37.Fn thrd_equal
38function returns
39.Sy non-zero
40if
41.Fa thrd0
42and
43.Fa thrd1
44refer to the same thread.
45Otherwise,
46.Sy 0
47is returned, indicating that
48.Fa thrd0
49and
50.Fa thrd1
51are different threads.
52.Sh INTERFACE STABILITY
53.Sy Standard
54.Sh MT-LEVEL
55.Sy MT-Safe
56.Sh SEE ALSO
57.Xr attributes 7 ,
58.Xr threads 7
59