📅  最后修改于: 2022-03-11 15:04:34.155000             🧑  作者: Mango
代码示例1
pthread_mutex_t my_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_lock(&my_mutex);
/* locked code */
pthread_mutex_unlock(&my_mutex);