Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_getspecific

Obtains the value of the thread private variable.

Interface Definition

void *HTL_thread_getspecific(HTL_thread_key_t thread_key);

Description

HTL_thread_getspecific() is used to obtain the value of the thread private variable thread_key. If the caller does not set the value of the thread private variable, NULL is returned.

Parameters

Parameter

Type

Description

Input/Output

thread_key

HTL_thread_key_t

Handle to the thread private variable.

Input

Return Value

Value of the thread private variable.

Example

    int *tmp = (int*)HTL_thread_getspecific(tls);