8999 SMBIOS: cleanup 32-bit specific code
[unleashed.git] / usr / src / man / man3c / thrd_equal.3c
blob28c6baeb1f8b01422f071560e007097eba1cfa27
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
28 The
29 .Fn thrd_equal
30 function compares
31 .Fa thrd0
32 and
33 .Fa thrd1
34 and determines whether or not they refer to the same thread.
35 .Sh RETURN VALUES
36 The
37 .Fn thrd_equal
38 function returns
39 .Sy non-zero
41 .Fa thrd0
42 and
43 .Fa thrd1
44 refer to the same thread.
45 Otherwise,
46 .Sy 0
47 is returned, indicating that
48 .Fa thrd0
49 and
50 .Fa thrd1
51 are different threads.
52 .Sh INTERFACE STABILITY
53 .Sy Standard
54 .Sh MT-LEVEL
55 .Sy MT-Safe
56 .Sh SEE ALSO
57 .Xr attributes 5 ,
58 .Xr threads 5