Name

pthread_self
- get the calling thread’s ID

Library

libc_r.lib libpthread.lib libthr.lib

Synopsis

  #include <pthread.h>
  pthread_t pthread_self (void);

Return values

The pthread_self function returns the thread ID of the calling thread.

Detailed description

The pthread_self function returns the thread ID of the calling thread.


Examples

pthread_t new_th2;
new_th2=pthread_self();

         

Errors

None.

See also

pthread_create, pthread_equal


Feedback

For additional information or queries on this page send feedback

© 2005-2007 Nokia

Top