Thread-Safe Initialization: call_once and once_flag
This lesson gives an overview of thread-safe initialization in the perspective of concurrency in C++.
We'll cover the following...
By using the std::call_once
function you can register a callable. The std::once_flag
ensures that only one registered function will be invoked, but we can register ...