マルチスレッドのプログラミング

スレッド固有データ用キーの設定

thr_setspecific(3T)

thr_setspecific(3T) は、呼び出しスレッドで、値 (value) とスレッド固有データのキー (key) を結び付けます。(POSIX スレッドについては、「pthread_setspecific(3T)」を参照)。


#include <thread.h>

int thr_setspecific(thread_key_t key, void *value);