Is __thread type modifier supported by ESP-IDF's toolchain?
Posted: Wed Aug 20, 2025 2:53 am
Hello everyone!
I know FreeRTOS supports TLS. However it is not clear if I can use "__thread" type modifier to make my global variables to be thread-specific? Or should I use API provided by FreeRTOS and manage my global variables myself?
What I am trying to do: I am converting some application to ESP-IDF. Application uses global variables, so I want to make these variables to be "per thread" variables
Thank you!
I know FreeRTOS supports TLS. However it is not clear if I can use "__thread" type modifier to make my global variables to be thread-specific? Or should I use API provided by FreeRTOS and manage my global variables myself?
What I am trying to do: I am converting some application to ESP-IDF. Application uses global variables, so I want to make these variables to be "per thread" variables
Thank you!