DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pthread_self(3pthread)


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(3pthread), getuid(2), pthread_create(3pthread), pthread_equal(3pthread), pthread(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004