thr_setspecific() binds value to the thread-specific data key, key, for the calling thread.
#include <thread.h> int thr_setspecific(thread_key_t key, void *value);