20 int ret = pthread_mutex_lock(&mhMutex);
21 if (ret == EOWNERDEAD) {
22 if (pthread_mutex_consistent(&mhMutex) != 0) {
23 perror(
"pthread_mutex_consistent failed");
30 pthread_mutex_unlock(&mhMutex);
34 pthread_mutexattr_t mhMutexAttr;
35 pthread_mutex_t mhMutex;