until_ts.tv_sec = until.tv_sec;
until_ts.tv_nsec = until.tv_usec * 1000UL;
- if (pthread_cond_timedwait(&__mCond, &__mCondMutex, &until_ts) != 0) {
+ int ret = pthread_cond_timedwait(&__mCond, &__mCondMutex, &until_ts);
+ if (ret != 0) {
char str_error[256];
- AUDIO_IO_LOGE("pthread_cond_timedwait error=%s", strerror_r(errno, str_error, sizeof(str_error)));
+ AUDIO_IO_LOGE("pthread_cond_timedwait error=[%d][%s]", ret, strerror_r(ret, str_error, sizeof(str_error)));
}
pthread_mutex_unlock(&__mCondMutex);