pthread_mutex_t pthread_cond_t
时间: 2023-09-10 13:13:08 浏览: 87
pthread_mutex_t是线程互斥量,用于保护共享资源的访问。它的初始化可以使用pthread_mutex_init函数,默认属性下可以将第二个参数设置为NULL。销毁互斥量可以使用pthread_mutex_destroy函数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [互斥锁pthread_mutex_t与条件变量pthread_cond_t的使用笔记](https://blog.csdn.net/m0_53539646/article/details/115509348)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [linux 线程锁pthread_mutex_t ,pthread_rwlock_t ,pthread_cond_t ,pthread_spinlock_t](https://blog.csdn.net/weixin_43224306/article/details/125050244)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文