文章目录 头文件常用函数pthread_create() 头文件 #include <pthread.h> 常用函数 static pthread_mutex_t ap_chg_msg_mtx; pthread_mutex_lock(&ap_chg_msg_mtx); pthread_cond_timedwait pthread_cond_signal pthread_create() 返回值: 成功则返回0, 否则返回错误编号.