DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pthread_self(PTHREAD)


pthread_self -- get thread identifier of the calling thread

Synopsis

   cc [options] -Kthread file
   

#include <pthread.h>

pthread_t pthread_self(void);

Description

pthread_self returns the identifier of the calling thread.

Return values

pthread_self returns the identifier of the calling thread.

Diagnostics

None. This function always succeeds.

Standards Compliance

The Single UNIX Specification, Version 2; The Open Group.

References

Intro(PTHREAD), getuid(S), pthread_create(PTHREAD), pthread_equal(PTHREAD), pthread(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005