'\" te .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. .\" Copyright (c) 2001, the Institute of Electrical and Electronics Engineers, Inc. and The Open Group. All Rights Reserved. .\" Copyright 1991, 1992, 1994, The X/Open Company Ltd. .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. This notice shall appear on any product containing this material. .TH pthread_equal 3C "11 Jan 2012" "SunOS 5.11" "Standard C Library Functions" .SH NAME pthread_equal \- compare thread IDs .SH SYNOPSIS .LP .nf cc -mt [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ] #include \fBint\fR \fBpthread_equal\fR(\fBpthread_t\fR \fIt1\fR, \fBpthread_t\fR \fIt2\fR); .fi .SH DESCRIPTION .sp .LP The \fBpthread_equal()\fR function compares the thread \fBIDs\fR \fIt1\fR and \fIt2\fR. .SH RETURN VALUES .sp .LP The \fBpthread_equal()\fR function returns a non-zero value if \fIt1\fR and \fIt2\fR are equal. Otherwise, \fB0\fR is returned. .sp .LP If \fIt1\fR or \fIt2\fR is an invalid thread \fBID,\fR the behavior is undefined. .SH ERRORS .sp .LP No errors are defined. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe _ StandardSee \fBstandards\fR(5). .TE .SH SEE ALSO .sp .LP \fBpthread_create\fR(3C), \fBpthread_self\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) .SH NOTES .sp .LP Solaris thread \fBIDs\fR do not require an equivalent function because the \fBthread_t\fR structure is an unsigned int.