NAME

catthread_equal - compare thread id

SYNOPSIS

#include <catmutex.h>

int catthread_equal(CATTHREAD *t0, CATTHREAD *t1);

DESCRIPTION

This function tests whether the two thread ids t0 and t1 refer to the same thread.

RETURN VALUES

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.

NOTES

catthread_equal() can be implemented as a macro.

SEE ALSO

cat, catutil

catthread_self