C++三个线程交替打印

#include <iostream> #include <condition_variable> using namespace std; mutex mtx; condition_variable cond_var; int g_index; typedef struct { const char *str; int index; } Param; void fun(v
相关文章
相关标签/搜索