xref: /titanic_50/usr/src/man/man3c/thrd_equal.3c (revision dcdfe824b3dff2df12578b936adf1daf000aa129)
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 2016 Joyent, Inc.
13.\"
14.Dd "Jan 11, 2015"
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 0
40if
41.Fa thrd0
42and
43.Fa thrd1
44refer to the same thread. Otherwise, a non-zero value is returned,
45indicating that
46.Fa thrd0
47and
48.Fa thrd1
49are different threads.
50.Sh INTERFACE STABILITY
51.Sy Standard
52.Sh MT-LEVEL
53.Sy MT-Safe
54.Sh SEE ALSO
55.Xr attributes 5 ,
56.Xr threads 5
57