thread_termination
static void thread_termination(void *);
err = pthread_key_create(&key, thread_termination);