The pthread_setspecific function

Name

pthread_setspecific -- 

Synopsis

#include <pthread.h>

int pthread_setspecific (pthread_key_t key, any_t value);

Description

The pthread_setspecific function associates a value with a data key for the calling thread.

Returns

The pthread_setspecific function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

None