cattthread_self - get thread id
#include <catmutex.h>
CATTHREAD cattthread_self();
This function returns the current thread id. A CATTHREAD
can be used only as argument to catthread_equal().
catthread_self() can be implemented as a macro.
cat, catutil
catthread_equal