c++11之once_flag

#include <pthread.h> #include <iostream> #include <mutex> using namespace std; std::once_flag g_flag; void once_func() { cout << __FUNCTION__ << "\t" << pthread_self() << " this is once call
相关文章
相关标签/搜索