thr_getspecific(3scl)thr_getspecific(3scl)NAMEthr_getspecific - Obtains the thread-specific data associated with the
specified key.
LIBRARY
SCL Threads Library (libthread.so)
SYNOPSIS
#include <thread.h>
void *thr_getspecific(
thread_key_t key );
PARAMETERS
Identifies which thread-specific data is to be obtained.
DESCRIPTION
This routine obtains the thread-specific data associated with the spec‐
ified key for the current thread.
Keys are created by calls to thr_keycreate(3scl). Thread-specific data
is bound to a key by calling thr_setspecific(3scl).
SCL IMPLEMENTATION NOTESthr_getspecific(3scl) is implemented by calling pthread_getspecific(3).
RETURN VALUES
This routine returns the thread-specific data value associated with the
key for this thread. If key is not defined, or there is no data value
associated with the key for this thread, then NULL is returned.
ERRORS
None.
RELATED INFORMATION
Functions: pthread_key_create(3), pthread_getspecific(3), pthread_set‐
specific(3)scl_intro(3scl), scl_thread_intro(3scl), thr_keycre‐
ate(3scl), thr_setspecific(3scl)
Manuals: Solaris Compatibility Libraries User's Guide
thr_getspecific(3scl)