... <mutex> #include <thread> #include <vector> std::mutex g_mutex; int g_count = 0; void Counter() { g_mutex.lock(); int i = ++g_count; ...
確定! 回上一頁