Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (n - p) pthread_getspeci
c(2)
NAME
pthread_getspecic - Obtains the thread-specic data associated with a key
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
void *pthread_getspecic(
pthread_key_t key );
PARAMETERS
key species the context key that identies the thread-specic data to be obtained.
DESCRIPTION
This function obtains the thread-specic data bound to the key specied by the key parameter for
the calling thread. Obtain this key by calling the pthread_key_create()
function.
This function can be called from a thread-specic data-destructor routine.
RETURN VALUES
This function returns the thread-specic data associated with key. If no thread-specic data is
associated with key or if key is not dened, then this function returns a NULL value.
RELATED INFORMATION
Functions: pthread_key_create(2), pthread_setspecic(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. 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 le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 567