pthread_self()

get calling thread's ID 

Function


SYNOPSIS

#include <pthread.h>

pthread_t pthread_self(void);


DESCRIPTION

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


PARAMETERS

None.


RETURN VALUES

This function returns the ID of the calling thread.


CONFORMANCE

POSIX P1003.1 (1996)


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_create(), pthread_equal()


PTC MKS Toolkit 9.6 patch 1 Documentation Build 5.