C++:互斥锁同步执行两个线程函数 #include <windows.h> #include <iostream> using namespace std; HANDLE hMutex = NULL; // 创建互斥锁