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

Asked by Lorenzo Tessiore on 2017-03-23

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:
2017-03-23
Last query:
2017-03-23
Last reply:
2017-03-23
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.

Lorenzo Tessiore (lt72) said : #2

Got it, thank you!