Returns the ID of the current thread.
#include <library.h> void *getthreadid ( void );
Returns a pointer to the thread ID of the calling process, useful only for passing to getthreadname and setthreadname.