pthread_getspecific

Returns the value assigned to the specified key.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h> 
   
  void *pthread_getspecific (
     pthread_key_t   key);
  

Parameters

key

(IN) Specifies the key for which the value is to be returned.

Return Values

If successful, returns the value assigned to the key.

If no data is assigned to the key, returns NULL.

See Also