pthread_getspecific(3)
NAME
pthread_getspecific - Obtains the thread-specific data associated with the specified key
SYNOPSIS
#include <pthread.h> int pthread_getspecific( pthread_key_t key, pthread_addr_t *value);
PARAMETERS
keyContext key value that identifies the data value obtained. This key value must be obtained from pthread_keycreate().
valueAddress of the current thread-specific data value associated with the specified key.
DESCRIPTION
The pthread_getspecific() routine obtains the thread-specific data associated with the specified key for the current thread.
RETURN VALUES
If the function fails, errno may be set to one of the following values:
| Return | Error | Description |
| 0 | Successful completion. | |
| \-1 | [EINVAL] | The key value is invalid. |
RELATED INFORMATION
Functions: pthread_keycreate(3), pthread_setspecific(3).
Hewlett-Packard Company — OSF DCE 1.1/HP DCE 1.5