tss_get Subroutine
Purpose
This subroutine fetches the thread-specific storage pointer that is based on the key value.
Library
Standard C Library (libc.a)
Syntax
#include <threads.h>void *tss_get(tss_t key); Description
The tss_get function returns the value for the current thread that is held in the thread-specific storage pointer that is identified by the key parameter.
Parameters
| Item | Description |
|---|---|
| key | Holds a thread-specific storage pointer. |
Return Values
The tss_get function returns the value for the current thread if successful or it returns zero if the tss_get function is unsuccessful.
Files
| Item | Description |
|---|---|
| threads.h | Standard macros, data types, and subroutines are defined by the threads.h file. |