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
相關文章
相關標籤/搜索