11.10.2 Manipulating the TLS context

The following interfaces are available for manipulating a TLS context for a thread of execution.

  • size_t _tls_size(void) - return the required size for all __thread variables
  • size_t _tls_align(void) - return the alignment requirements
  • void _init_tls(void *) - initialize a new allocated TLS context
  • void _set_tls(void *) - activate a previously allocated and initialized TLS context