Name

pthread_self
- get the calling thread’s ID

Library

libpthread.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

© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top