std::call_once && std::once_flag notes2018-09-20·1 分钟工程 Cpp Modern Cpp Call_once Once_flag多线程保护数据时,一种较为特殊的情况是只需要保护资源的初始化。