Up until now, the `__thread` keyword has been used for declaring variables as Thread local storage. However, `__thread` is a GNU specific keyword which thus limits compatibility with other toolchains (for instance IAR). This PR intoduces a new macro `Z_THREAD_LOCAL` which expands to the corresponding C11, C23 or C++11 standard keyword based on the standard that is specified during compilation, else it uses the old `__thread` keyword. Signed-off-by: Daniel Flodin <daniel.flodin@iar.com> |
||
|---|---|---|
| .. | ||
| zvfs | ||
| assert.c | ||
| cbprintf_complete.c | ||
| cbprintf_nano.c | ||
| cbprintf_packaged.c | ||
| cbprintf.c | ||
| CMakeLists.txt | ||
| fdtable.c | ||
| Kconfig | ||
| Kconfig.cbprintf | ||
| mpsc_pbuf.c | ||
| mutex.c | ||
| p4wq.c | ||
| poweroff.c | ||
| printk.c | ||
| reboot.c | ||
| sem.c | ||
| spsc_pbuf.c | ||
| thread_entry.c | ||
| user_work.c | ||