thr_setspecific() は、呼び出しスレッドで、値 (value) とスレッド固有データのキー (key) を結び付けます。
#include <thread.h> int thr_setspecific(thread_key_t key, void *value);