...

/

Introduction to Thread-Safe Meyers Singleton

Introduction to Thread-Safe Meyers Singleton

This lesson gives an introduction to a thread-safe version of Meyers singleton.

We'll cover the following...

The C++11 standard guarantees that static variables with block scope will be initialized in a thread-safe way. The Meyers Singleton uses a static variable with block scope, so we are done. The only work that is left to do is to rewrite the previously used classical Meyers Singleton for the multithreading use-case.

Access this course and 1400+ top-rated courses and projects.