...

/

Thread-Safe Initialization - Static Variables with Block Scope

Thread-Safe Initialization - Static Variables with Block Scope

This lesson gives an overview of thread-safe initialisation with static variables in 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 ...