thrd_equal()
QNX SDP8.0C Library ReferenceAPIDeveloper
Compare two thread IDs
Synopsis:
#include <threads.h>
int thrd_equal( thrd_t thr0,
                thrd_t thr1 );
Arguments:
- thr0, thr1
 - The thread IDs that you want to compare. You can get the IDs when you call thrd_create() or thrd_current().
 
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The thrd_equal() function compares the thread IDs of thr0 and thr1. It doesn't check to see if they're valid thread IDs.
Returns:
- A nonzero value
 - The thr0 and thr1 thread IDs are equal.
 - 0
 - The thread IDs aren't equal.
 
Classification:
| Safety: | |
|---|---|
| Cancellation point | No | 
| Signal handler | Yes | 
| Thread | Yes | 
Page updated: 
