1璃俗、pthread_mutex_init 2、靜態(tài)初始化互斥鎖 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; 不同:宏靜態(tài)創(chuàng)建互斥鎖不進行錯誤檢查