pthread_mutex_init(&main_wait, NULL)中main_wait是什么
时间: 2024-05-07 07:05:49 浏览: 62
线程中处理信号pthread_sigmask 的使用.txt
pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
The pthread_mutex_init() function initializes a mutex object referenced by the mutex parameter with the attributes specified by the attr parameter. If attr is NULL, the mutex is initialized with default attributes. The mutex object can be used for synchronization between threads.
The function returns 0 on success and an error number on failure.
阅读全文