Thread-Safe Initialization
This lesson gives a brief introduction to thread safe initialization of variables in concurrent programming with C++.
If the variable is never modified there is no need for synchronization by using an expensive lock or an atomic. You only have to ensure that it is initialized ...