next up previous contents index
Next: 18.3.31 pthread_setspecific: Set a Up: 18.3 POSIX Threads Reference Previous: 18.3.29 pthread_key_create: Create a

18.3.30 pthread_key_delete: Delete a thread-specific data key

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_key_delete(pthread_ket_t *key);

DESCRIPTION

Delete the thread-specific key. Attempts to use a key via pthread_setspecific or pthread_getspecific after it has been deleted is undefined.

PARAMETERS

key
The key that should be deleted.

RETURNS

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

RELATED INFORMATION

pthread_key_create, pthread_setspecific, pthread_getspecific



University of Utah Flux Research Group