next up previous contents index
Next: 18.3.32 pthread_getspecific: Set a Up: 18.3 POSIX Threads Reference Previous: 18.3.30 pthread_key_delete: Delete a

18.3.31 pthread_setspecific: Set a thread-specific data value

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_setspecific(pthread_ket_t key, const void *value);

DESCRIPTION

Associate a new thread-specific value with the specified key.

PARAMETERS

key
The key that should be set.
value
The new value to associate with the key.

RETURNS

Returns zero on success. Returns EINVAL if key refers to an invalid key.

RELATED INFORMATION

pthread_key_create, pthread_key_delete, pthread_getspecific



University of Utah Flux Research Group