std::call_once && std::once_flag notesSep 20, 2018·486 words·1 min工程 C++ Cpp Modern Cpp Call_once Once_flag多线程保护数据时,一种较为特殊的情况是只需要保护资源的初始化。