#include <oskit/threads/pthread.h>int pthread_setspecific(pthread_ket_t key, const void *value);
Associate a new thread-specific value with the specified key.
- key
- The key that should be set.
- value
- The new value to associate with the key.
Returns zero on success. Returns EINVAL if key refers to an invalid key.
pthread_key_create, pthread_key_delete, pthread_getspecific