thread_local

From cppreference.com
< c‎ | thread
Defined in header <threads.h>
#define thread_local _Thread_local
(since C11)

Convenience macro which can be used to specify that an object has thread-local storage duration.

References

  • C17 standard (ISO/IEC 9899:2018):
  • 7.26.1/3 thread_local (p: 274)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.1/3 thread_local (p: 376)

See also