tss_set Subroutine

Purpose

This subroutine sets the value of the val parameter in the thread-specific storage pointer.

Library

Standard C Library (libc.a)

Syntax

#include <threads.h>
int tss_set(tss_t key, void *val);

Description

The tss_set function sets the value for the current thread that is held in the thread-specific storage pointer that is identified by the key parameter to the val parameter.

Parameters

Item Description
key Holds a thread-specific storage pointer.
key Holds the value to be set in the thread-specific storage pointer.

Return Values

The tss_set function returns thrd_success on success or it returns thrd_error if the request is not completed.

Files

Item Description
threads.h Standard macros, data types, and subroutines are defined by the threads.h file.