27 #ifndef CPP_PTHREADS_KEY_H_
28 #define CPP_PTHREADS_KEY_H_
int create(Destructor_t destruct=0)
create a key that can be used to identify per-thread specific objects
void(* Destructor_t)(void *)
type of a function which is used to destroy the object if the object is not null when the key is dest...
int setSpecific(void *value)
set this threads data in the box associated with this key
int destroy()
destroy the key, call destructor on data if it is set and data is not null
A key is an identifier used to specify a storage location where the thing stored is different for eac...
void * getSpecific()
return the data associated with this key that belongs to this thread