4 ms·You can use std::once_flag and std::call_once from <mutex> instead of rolling your own atomic solution.by Arnavion 3y agoYou can use std::once_flag and std::call_once from <mutex> instead of rolling your own atomic solution.