Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Microcontrollers (MCU)

Microcontrollers (MCU) Application and programming of MCUs, Evaluation Kits and Demonstration Boards, Programmers.

Thread Tools Search this Thread
Old 08-14-2017, 05:39 PM   #1
Join Date: Oct 2013
Location: Kazakhstan
Posts: 36
mark is on a distinguished road
Default Async await for embedded C/C++

The point is to write code that reads like it is blocking, when in fact it is cooperative non-blocking multitasking. Something like Protothreads / finite state machine, but as language feature.
Could be used instead of an RTOS when it is not needed/not desirable, and easier to reason about as it is not preemtive, and could be stackless.

As far as I know, only Visual C++ 2015 implements such a thing(?). Anybody tried it / has experience with it?

Is there interest in this language construct for microcontrollers?
mark is offline   Reply With Quote
Old 08-22-2017, 04:20 PM   #2
Join Date: Nov 2013
Posts: 53
hemilton is on a distinguished road

Coroutines have been proposed, but didn't make it into C++17. In the meanwhile, there are existing implementations of coroutines, eg. Boost.Asio, and libraries like Protothreads.
hemilton is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Discussion: Increase efficiency in embedded digital-I/O lines Radiolocman Robot Projects and Advices 2 06-06-2015 07:57 AM

All times are GMT. The time now is 07:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus