catthread_equal - compare thread id
#include <catmutex.h>
int catthread_equal(CATTHREAD *t0, CATTHREAD *t1);
This function tests whether the two thread ids t0 and t1 refer to the same thread.
Returns non-zero if t0 and t1 are equal and 0 if they differ.
If either t0 or t1 is an invalid thread id, the result is undefined.
catthread_equal() can be implemented as a macro.
cat, catutil
catthread_self