pthread_equal - compare thread IDs
#include <pthread.h>
Callable from ISR.
The pthread_equal() function compares the thread IDs t1 and t2.
If t1 and t2 are equal, pthread_equal() returns a non-zero value; otherwise, 0 is returned.
If either t1 or t2 is an invalid thread ID, the result is unpredictable.
pthread_create(), pthread_self()