C++20: Thread Synchronization with Coroutines
It’s a typical requirement for thread management to synchronize them. One thread prepares, in this case, a work-package another thread is waiting for.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 656 entries already.
It’s a typical requirement for thread management to synchronize them. One thread prepares, in this case, a work-package another thread is waiting for.
My story to coroutines in C++20 goes on. Today I dive deep into the coroutines framework to create an infinite data stream. You have to read the two previous posts, “C++20: Coroutines – A First Overview“, and “C++20: More Details to Coroutines” to be prepared.
After I gave you in my last post (C++20: Coroutines – A First Overview) my first impression of coroutines, I want to provide more details today. Once more, we get in C++20 not coroutines but a framework for building coroutines.
I’m looking for proofreaders for my new book “C++ Core Guidelines”. The crucial idea of the book is to put the precious ideas of the C++ Core Guidelines into a readable book for the big audience. This book includes more than a hundred examples to study the theory in praxis.
C++20 provides four features that change how we think about and write modern C++: concepts, the ranges library, coroutines, and modules. I already wrote a few posts to concepts and the ranges library. Let’s have a closer look at coroutines.
Image by Peggy und Marco Lachmann-Anke from Pixabay I want to say a few personal words due to exceptional circumstances.
Today, I finish my experiment writing beloved Python functions in C++. So far, I have implemented the Python functions filter, range, and xrange. Today, I have a closer look at the map function and combine the functions map and filter into one function.
In my last post, C++20: Pythonic with the Ranges Library, I started my experiment to implement the beloved Python functions range and filter in C++. Due to two very interesting comments to my last post, I revisit the function range.
Today, I start an experiment. I want to implement beloved functions in Python in C++ using the ranges library. I’m curious about how it goes.
My last post C++20: The Ranges Library, gave you the first impression of the ranges library. Today’s post is about functional patterns: function composition and lazy evaluation. They become first-class citizens in C++20.