The pthread_getspecific function

Name

pthread_getspecific -- 

Synopsis

#include <pthread.h>

any_t pthread_getspecific (pthread_key_t key);

Description

The pthread_getspecific function retrieves the value of a data key for the current thread. If key is not a valid key, then errno is set to EINVAL.

Returns

The pthread_getspecific function returns the value associated with key, or returns NULL if key is invalid.

Implementation Notes

None