vendredi 25 octobre 2019

What is the rationale for adding semaphore to C++20, while it was deemed too dangerous for C++11

I seem to remember the rationale for not adding semaphores to C++11 being that they are too easy to use incorrectly and the programmers are better to use mutexes and condition variables.

If that's so, what is the rationale for finally adding the semaphore to C++20?

Aucun commentaire:

Enregistrer un commentaire