FS#56852 - [arm-none-eabi-gcc] thread/mutex support

Attached to Project: Community Packages
Opened by Michel (xantares) - Monday, 25 December 2017, 09:36 GMT
Last edited by Anatol Pomozov (anatolik) - Friday, 29 December 2017, 16:45 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

the package is not able to compile a simple mutex example:
http://en.cppreference.com/w/cpp/thread/mutex

I see that in the PKGBUILD threads is disabled, is it possible to enable it ? Or would it require to ship some kind of additional runtime ? (I'm new to arm cross builds sorry)
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Friday, 29 December 2017, 16:45 GMT
Reason for closing:  Not a bug
Comment by Anatol Pomozov (anatolik) - Friday, 29 December 2017, 03:58 GMT
Threads are disabled because it requires support from underlying OS/libc. arm-none-eabi flavor compiles bare metal binaries for microcontrollers where no OS exists and there is no thread support. If one wants multitask support then it should be implemented by the application itself. Does it make sense?

Here is an example how other folks implement multithreading https://chromium.googlesource.com/chromiumos/platform/ec/+/master/core/cortex-m/task.c
Comment by Michel (xantares) - Friday, 29 December 2017, 16:41 GMT
Yes, thank you for the explanation.
I guess you can close it.

Loading...