Support for std::thread and synchronization primitives, e.g. std::mutex...

Asked by Lorenzo Tessiore

Hello,

I would like to know if any of the compilers/libraries for Cortex-M support the std::thread type (from the <thread> header) and other synchronization primitives types such as std::mutex. I am interested in support for any Cortex-M processor with the latest version of GCC for ARM. Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Tejas Belagod
Solved:
Last query:
Last reply:
Revision history for this message
Best Tejas Belagod (belagod-tejas) said :
#1

Hi Lorenzo, we currently disable thread support in g++ and libstdc++. You could use https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html to implement mutexes.

Revision history for this message
Lorenzo Tessiore (lt72) said :
#2

Got it, thank you!