C11 threads support

User avatar
bartvanhofwegen
Posts: 5
Joined: Mon Aug 15, 2022 5:25 pm
Location: The Netherlands

C11 threads support

Postby bartvanhofwegen » Wed Sep 14, 2022 4:54 pm

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

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: C11 threads support

Postby ESP_igrr » Thu Sep 15, 2022 6:21 am

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.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 411 guests