Home » Developing U++ » UppHub » Coroutines package for U++
Re: Coroutines package for U++ [message #59132 is a reply to message #59118] |
Mon, 07 November 2022 18:38   |
 |
peterh
Messages: 108 Registered: November 2018 Location: Germany
|
Experienced Member |
|
|
Hi,
Out of interest I tried the example from UppHub.
(I have used cooperative coroutines 40 years ago on DOS in Borland Pascal (and in Modula II but the latter only experimental).
We used a commercial library. The program was rather big and consisted out of a base routine and overlays which where swapped.
We used this for a program that had a complex user interface and that must communicate with a running machine, store the process data in realtime, visualize data and control machine parameters interactively, all at the same time, using a single computer)
So far I have read, C++20 coroutines are different, these are "stackless" coroutines, which implies some limitations. (cannot suspend or yield in a subroutine)
I do not fully understand it yet and the purpose of it.
I noticed, if I set a breakpoint inside the body of a coroutine, then it is not hit.
Edit: A call to DebugBreak() is hit.
If I set a breakpoint at the entry point of a coroutine, it is hit.
If I call a subroutine from a coroutine and set a breakpoint inside this subroutine, then it is hit.
[Updated on: Mon, 07 November 2022 20:02] Report message to a moderator
|
|
|
 |
|
Coroutines package for U++
By: Oblivion on Sat, 05 November 2022 12:19
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Sun, 06 November 2022 20:20
|
 |
|
Re: Coroutines package for U++
By: Klugier on Sun, 06 November 2022 20:44
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Sun, 06 November 2022 21:31
|
 |
|
Re: Coroutines package for U++
By: Lance on Mon, 07 November 2022 00:14
|
 |
|
Re: Coroutines package for U++
By: koldo on Mon, 07 November 2022 08:39
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Mon, 07 November 2022 20:07
|
 |
|
Re: Coroutines package for U++
By: peterh on Mon, 07 November 2022 20:30
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Mon, 07 November 2022 20:31
|
 |
|
Re: Coroutines package for U++
By: peterh on Tue, 08 November 2022 09:09
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Wed, 09 November 2022 16:22
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Wed, 09 November 2022 22:52
|
 |
|
Re: Coroutines package for U++
By: Lance on Wed, 09 November 2022 23:26
|
 |
|
Re: Coroutines package for U++
By: Lance on Sat, 12 November 2022 00:33
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Sat, 12 November 2022 07:22
|
 |
|
Re: Coroutines package for U++
By: Lance on Sun, 13 November 2022 05:37
|
 |
|
Re: Coroutines package for U++
By: Lance on Mon, 14 November 2022 02:17
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Mon, 14 November 2022 05:56
|
 |
|
Re: Coroutines package for U++
By: Lance on Mon, 14 November 2022 15:08
|
 |
|
Re: Coroutines package for U++
By: peterh on Mon, 07 November 2022 18:38
|
 |
|
Re: Coroutines package for U++
By: zsolt on Mon, 12 December 2022 13:48
|
 |
|
Re: Coroutines package for U++
By: Oblivion on Mon, 12 December 2022 17:42
|
 |
|
Re: Coroutines package for U++
By: zsolt on Mon, 12 December 2022 21:38
|
Goto Forum:
Current Time: Sat May 10 14:14:46 CEST 2025
Total time taken to generate the page: 0.03214 seconds
|