linux下互斥锁的使用 源码如下#include #include #include #include "iostream" #include using namespace std; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; //初始化 互斥锁int tmp; void* thread(void *arg) C/C++ 2023-10-06 35 点赞 0 评论 53 浏览