Take Up Code
Take Up Code
Take Up Code: build your own computer games, apps, and robotics with podcasts and live classes
104: Multithreading. Singleton Mistakes.
11 minutes Posted May 9, 2016 at 11:22 pm.
0:00
11:45
Download MP3
Show notes
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?