[runtime] Add more logging in case mono_os_cond_timedwait () fails.
authorZoltan Varga <vargaz@gmail.com>
Mon, 26 Jun 2017 17:04:36 +0000 (13:04 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 26 Jun 2017 17:04:45 +0000 (13:04 -0400)
mono/utils/mono-os-mutex.h

index d6c5250256a84f7b504390c2697b3da61df5042c..3888d26441df95cd34c10822cd70c8db0ee8bef8 100644 (file)
@@ -215,7 +215,7 @@ mono_os_cond_timedwait (mono_cond_t *cond, mono_mutex_t *mutex, guint32 timeout_
 
        res = pthread_cond_timedwait (cond, mutex, &ts);
        if (G_UNLIKELY (res != 0 && res != ETIMEDOUT))
-               g_error ("%s: pthread_cond_timedwait failed with \"%s\" (%d)", __func__, g_strerror (res), res);
+               g_error ("%s: pthread_cond_timedwait failed with \"%s\" (%d) %ld %ld %d", __func__, g_strerror (res), res, ts.tv_sec, ts.tv_nsec, timeout_ms);
 
        return res != 0 ? -1 : 0;
 }