Defined in header <threads.h> | ||
|---|---|---|
#define thread_local _Thread_local | (since C11) (removed in C23) |
Convenience macro which can be used to specify that an object has thread-local storage duration.
Since C23, thread_local is itself a keyword, which may also be a predefined macro, so <threads.h> no longer provides it.
C++ documentation for thread_local |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/thread/thread_local