tss_set - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# tss_set

From cppreference.com
< c‎ | thread

Defined in header `<threads.h>` |  |
int tss_set( tss_t tss_id, void *val ); |  | (since C11)

Sets the value of the thread-specific storage identified by `tss_id` for the current thread to `val`.

### [edit] Parameters

tss_id | - | identifies the thread-specific storage to modify
val | - | value to set thread-specific storage to

### [edit] Return value

thrd_success if successful, thrd_error otherwise.

### [edit] See also

tss_get (C11) | reads from thread-specific storage (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/thread/tss_set&oldid=63565"