zephyr/lib/os
Daniel Flodin 746c59c82a arch: kernel: lib: toolchain: Standardize TLS keyword
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>
2024-09-23 10:01:48 +02:00
..
zvfs
CMakeLists.txt
Kconfig
Kconfig.cbprintf
assert.c
cbprintf.c
cbprintf_complete.c
cbprintf_nano.c
cbprintf_packaged.c
fdtable.c
mpsc_pbuf.c logging: fix log buffer pending while it is definitely full 2024-08-23 08:04:18 -04:00
mutex.c
p4wq.c style: lib: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
poweroff.c
printk.c lib: os: change __printk_get_hook return type to printk_hook_fn_t 2024-07-27 10:41:01 +03:00
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
user_work.c