-
Notifications
You must be signed in to change notification settings - Fork 7.4k
C++ std::async and std::future support #31559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
std::async will dynmically create (std?)Threads which is not something that will easy to do as there is no support for std::threads so far as I understand. |
@adamfowleruk I had a look at your Herald project, that is really interesting, thanks for sharing with us. Also, @pabigot might have additional insights aside from what was already mentioned by @baw-serafin. |
Not really. Zephyr was never designed with C++ in mind, and advanced features like threads and atomics might be difficult to backfill. It is a significant amount of work, especially if we need to support multiple toolchains. |
Hi @stephanosio, This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person. Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason. @adamfowleruk you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you. Thanks! |
I have a C++ library which I'm porting to work on Zephyr. This uses the Zephyr Bluetooth API. I have successfully linked the library during its development and have most functionality working. For ease I'd like to use std::async and std::future in my code for my library. If I do this, I cannot currently port it to Zephyr. (Compile error below). I note the previous catch-all issues #18554 #31281.
Describe the solution you'd like
I would like support for std::async and std::future please. (I realise this implies other C++17 functionality needs implementing too)
Describe alternatives you've considered
Adding my own template primitives when std library support isn't available - but this of course leads to complexity in the library.
Additional context
I'm more than happy to assist in writing and testing this as it would be ideal for a COVID-19 project I'm working on ( https://github.com/vmware/herald-for-cpp ). I have several Nordic DK boards for testing.
The text was updated successfully, but these errors were encountered: