]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a couple of lines that were missed out in the long timeouts patch.
authorTom Hughes <tom@compton.nu>
Mon, 18 Oct 2004 12:11:23 +0000 (12:11 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 18 Oct 2004 12:11:23 +0000 (12:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2783

coregrind/vg_libpthread.c

index 2cbfe353cd51e04b901797ae657366e1daeafbfa..29ed6af7ab2b5af951735837ec53d66ad6f82ccc 100644 (file)
@@ -1375,6 +1375,8 @@ int __pthread_mutex_timedlock(pthread_mutex_t *mutex,
         + ((unsigned long long int)(abstime->tv_nsec / 1000000));
    if (ull_ms_end_after_1970 < ull_ms_now_after_1970)
       ull_ms_end_after_1970 = ull_ms_now_after_1970;
+   ull_ms_now = ((unsigned long long int)(ms_now));
+   ull_ms_end = ull_ms_now + (ull_ms_end_after_1970 - ull_ms_now_after_1970);
    if (ull_ms_end >= (unsigned long long int)(0xFFFFFFFFUL)) {
       /* use 0xFFFFFFFEUL because 0xFFFFFFFFUL is reserved for no timeout
          (the fine difference between a long wait and a possible abort