# Thread-Specific Data: The functions.

- ## Create a data key:

  - int pthread_key_create(pthread_key_t *key,void (*destructor)(void *));

- ## Remove a key:

  - int pthread_key_delete(pthread_key_t key);

- ## Assign thread-specific data:

  - int pthread_setspecific(pthread_key_t key, void * value);

- ## Access thread-specific data:

  - void * pthread_getspecific(pthread_key_t key);

Previous slide | Next slide | Back to first slide | View graphic version