* Alexander Scherbatiy:
> The pthread_getspecific(3) specification describes:
> "The pthread_getspecific() function shall return the thread-specific
> data value associated with the given key. If no thread-specific data
> value is associated with key, then the value NULL shall be returned. "
POSIX says this:
| The effect of calling pthread_getspecific() or pthread_setspecific()
| with a key value not obtained from pthread_key_create() or after key
| has been deleted with pthread_key_delete() is undefined.
So no check for a valid key is required.
Thanks,
Florian