...

/

Thread-Safe Initialization - Static Variables with Block Scope

Thread-Safe Initialization - Static Variables with Block Scope

This lesson gives an overview of thread-safe initialization with static variables from the perspective of concurrency in C++.

We'll cover the following...

Static variables with block scope will be created exactly once and lazily (i.e. created just at the moment of the usage). This characteristic is the basis of the so-called Meyers Singleton, named after ...