Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (n - p) pthread_self(2)
NAME
pthread_self - Obtains the thread identifier of the calling thread
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
pthread_t pthread_self(
void );
DESCRIPTION
This function returns the thread identifier of the calling thread.
RETURN VALUES
This function returns the thread identifier of the calling thread.
RELATED INFORMATION
Functions: pthread_cancel(2), pthread_create(2), pthread_detach(2), pthread_exit(2),
pthread_join(2), pthread_kill(2), pthread_sigmask(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 5−89