getthreadid

Returns the ID of the current thread.

Library:LibC
Service:Library

Syntax

  #include <library.h> 
   
  void *getthreadid ( void );
  

Return Values

Returns a pointer to the thread ID of the calling process, useful only for passing to getthreadname and setthreadname.

See Also