Valgrind
报错
在一个程序里,
在构造里 pthread_mutex_init
在析构里 pthread_mutex_destroy
中间不停地
pthread_mutex_lock pthread_mutex_unlock
本来是没问题的,
但发现手误, 将pthread_mutex_destroy 写成了pthread_mutex_unlock, 就出上面的错误了
Valgrind
报错
在一个程序里,
在构造里 pthread_mutex_init
在析构里 pthread_mutex_destroy
中间不停地
pthread_mutex_lock pthread_mutex_unlock
本来是没问题的,
但发现手误, 将pthread_mutex_destroy 写成了pthread_mutex_unlock, 就出上面的错误了