Take Up Code
104: Multithreading. Singleton Mistakes.

104: Multithreading. Singleton Mistakes.

Take Up Code

11:45

About this episode

There is a big problem with Singletons especially in the C++ language. It is not obvious how to get them to work with multiple threads. You want one instance in your entire application and how do you handle the race condition when multiple threads ask for the instance at the same time?

More from Take Up Code

This is the first in a series of comments about the book “How To Code C++ From a Simple Idea To a Game You’ll Understand!” Each episode will be short and focused. You can watch the video versions on Y…

1m