Assigns a value to the specified key for the calling thread.
#include <pthread.h> int pthread_setspecific ( pthread_key_t key, const void *value);
(IN) Specifies the key for which the value is to be set.
(IN) Specifies the value to assign to the key.
If successful, returns 0; otherwise, returns a nonzero error code:
The value set by calling pthread_setspecific can be returned later by calling pthread_getspecific.