PTHREAD_EQUAL



PTHREAD_EQUAL

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
ATTRIBUTES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON

NAME

pthread_equal − compare thread IDs

SYNOPSIS

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);

Compile and link with −pthread.

DESCRIPTION

The pthread_equal() function compares two thread identifiers.

RETURN VALUE

If the two thread IDs are equal, pthread_equal() returns a nonzero value; otherwise, it returns 0.

ERRORS

This function always succeeds.

ATTRIBUTES

Multithreading (see pthreads(7))
The pthread_equal() function is thread-safe.

CONFORMING TO

POSIX.1-2001.

NOTES

The pthread_equal() function is necessary because thread IDs should be considered opaque: there is no portable way for applications to directly compare two pthread_t values.

SEE ALSO

pthread_create(3), pthread_self(3), pthreads(7)

COLOPHON

This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.




More Linux Commands

manpages/TIFFReadEncodedStrip.3tiff.html
TIFFReadEncodedStrip(3tiff) - read and decode a strip of dat
Read the specified strip of data and place up to size bytes of decompressed information in the (user supplied) data buffer. NOTES The value of strip is a raw st

manpages/timerisset.3.html
timerisset(3) - timeval operations - Linux manual page......
The macros are provided to operate on timeval structures, defined in &lt;sys/time.h&gt; as: struct timeval { time_t tv_sec; /* seconds */ suseconds_t tv_usec; /* micr

manpages/isascii_l.3.html
isascii_l(3) character classification functions (Man Page)
These functions check whether c, which must have the value of an unsigned char or EOF, falls into a certain character class according to the specified locale. T

manpages/Tcl_GetRegExpFromObj.3.html
Tcl_GetRegExpFromObj(3) - Pattern matching with regular expr
Tcl_RegExpMatch determines whether its pattern argument matches regexp, where regexp is interpreted as a regular expression using the rules in the re_syntax ref

manpages/waddnstr.3ncurses.html
mvwaddstr(3ncurses) - add a string of characters to a curses
These functions write the (null-terminated) character string str on the given window. It is similar to calling waddch once for each character in the string. The

manpages/FcBlanksIsMember.3.html
FcBlanksIsMember(3) - Query membership in an FcBlanks.......
Returns whether the specified FcBlanks object contains the indicated Unicode value. VERSION Fontconfig version 2.8.0 FcBlanksIsMember.3 (Library - Linux manual

manpages/curl_unescape.3.html
curl_unescape(3) - URL decodes the given string (Man Page)
Obsolete function. Use curl_easy_unescape(3) instead! This function will convert the given URL encoded input string to a plain string and return that as a new a

manpages/Tk_NameOfCursor.3.html
Tk_NameOfCursor(3) - maintain database of cursors (ManPage)
These procedures manage a collection of cursors being used by an application. The procedures allow cursors to be re-used efficiently, thereby avoiding server ov

manpages/exit.n.html
exit(n) - End the application (Local - Linux man page)......
Terminate the process, returning returnCode to the system as the exit status. If returnCode is not specified then it defaults to 0. EXAMPLE Since non-zero exit

manpages/btrfs-replace.8.html
btrfs-replace(8) replace devices managed by btrfs with other
btrfs replace is used to replace btrfs managed devices with other device. Note: this is not currently supported for RAID5/6 profiles and must use the device add

manpages/gview.1.html
gview(1) - Vi IMproved, a programmers text editor (ManPage)
Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text. It is especially useful for editing programs. There are a

manpages/ip-netns.8.html
ip-netns(8) process network namespace management (Man Page)
A network namespace is logically another copy of the network stack, with its own routes, firewall rules, and network devices. By convention a named network name





We can't live, work or learn in freedom unless the software we use is free.