Page 1 of 1

C11 threads support

Posted: Wed Sep 14, 2022 4:54 pm
by bartvanhofwegen
Hi,

Is the C11 threads library supported in ESP-IDF? I know about the pthreads support and there is mention of C++ std::thread (and relatives) support, as they are based on pthreads in GCC, but is the C11 threads lib also based on pthreads ans thus supported? I see that the threads.h header is available and there is mention of thread local support in the docs, but I can't find much else.

Thanks in advance !
Bart

Re: C11 threads support

Posted: Thu Sep 15, 2022 6:21 am
by ESP_igrr
Hi Bart,

There is no C11 threads support in IDF yet. You can use pthread functions if you want to have a portable way of creating threads, though.