pthread_key_delete(3P)					pthread_key_delete(3P)
      pthread_key_delete	- thread-specific data key deletion
      #include <pthread.h>
     int pthread_key_delete(pthread_key_t key);
     The pthread_key_delete() function deletes a key that was previously
     returned by pthread_key_create().
     When key is deleted, the associated destructor (if	any) is	not called by
     pthread_key_delete() nor will it be called	upon thread exit [see
     pthread_exit()].  It is the responsibility	of the user program to free up
     any storage that is referenced by key.
     The use of	key after the call to pthread_key_delete() will	result in
     undefined behavior.
     On	success, pthread_key_delete() returns zero; otherwise, an error	number
     is	returned:
     [EINVAL]	    The	value specified	by key is invalid.
     pthread_key_create(3P), pthread_exit(3P).
									PPPPaaaaggggeeee 1111 [ Back ]
 |