Compare two thread IDs
#include <threads.h> int thrd_equal( thrd_t thr0, thrd_t thr1 );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The thrd_equal() function compares the thread IDs of thr0 and thr1. It doesn't check to see if they're valid thread IDs.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |