Latches in C++20

Latches and barriers are coordination types that enable some threads to wait until a counter becomes zero. You can use a std::latch only once, but you can use a std::barrier more than once. Today, I have a closer look at latches.

Read more
Tags: latches
Views: 84006

Semaphores in C++20

Semaphores are a synchronization mechanism used to control concurrent access to a shared resource. They also allow it to play ping-pong.

Read more
Views: 155980

And the Winners are:

Last week,  I launched a quiz. The price was it to win one of the five vouchers for the book "The Modern C++ Programming Cookbook" 2en Edition by Marius Bancila.

Read more
Views: 5899

Performance Comparison of Condition Variables and Atomics in C++20

After the introduction to std::atomic_flag in my last post, Synchronization with Atomics in C++20, I want to dive deeper. Today, I created a ping-pong game using condition variables, std::atomic_flag and std::atomic<bool>. Let's play.

Read more
Views: 44310

Synchronization with Atomics in C++20

Sender/receiver workflows are pretty common for threads. In such a workflow, the receiver is waiting for the sender's notification before it continues to work. There are various ways to implement these workflows. With C++11, you can use condition variables or promise/future pairs; with C++20, you can use atomics.

Read more
Views: 29658

I'm Proud to Present my New Book: C++20

I'm proud to present the early release of my book to C++20 on LeanPub. The book is 50 % done and has more than 300 pages and 150 code examples of content. I will update the book at least two times in 2021. Of course, you will get each update of the book.

Read more
Views: 19453

Atomic References with C++20

Atomics receives a few essential extensions in C++20. Today, I start with the new data type std::atomic_ref.

Read more
Tags: Atomics
Views: 21643

Looking for Proofreaders for my New Book: C++20

I'm looking for proofreaders for my new book "C++20". The book serves two purposes. It provides you the details of the new C++20 standard and shows you how to use it. This book includes more than one hundred fifty examples to study the theory in praxis.

Read more
Views: 7119

Bit Manipulation with C++20

This post concludes my presentation of library features in C++20. Today I am writing about the class std::source_location and a few functions for bit manipulation.

Read more
Views: 34235

Feature Testing with C++20

When your program's compilation broke with a brand-new C++20 feature, you often end with a few questions: Did I do something wrong? Did I find a compiler bug? Does my compiler not yet support this feature? Thanks to the feature testing in C++20, the last question is easy to answer.

Read more
Views: 12334

Stay Informed about my Mentoring

 

Mentoring

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Course: The All-in-One Guide to C++20

Course: Master Software Design Patterns and Architecture in C++

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code

Visitors

Today 2098

Yesterday 4371

Week 37905

Month 168030

All 12055796

Currently are 179 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments