]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug fix: DRD no longer complains that a mutex was not locked by the calling thread...
authorBart Van Assche <bvanassche@acm.org>
Sun, 30 Mar 2008 08:39:51 +0000 (08:39 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 30 Mar 2008 08:39:51 +0000 (08:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7815

exp-drd/drd_pthread_intercepts.c

index a69eada91af6acdf65ecccf940a39a11bf62b861..b52d5ed3c80acaae11c2a23f17407f780a34bac0 100644 (file)
@@ -459,7 +459,7 @@ PTH_FUNC(int, pthreadZucondZuwaitZa, // pthread_cond_wait*
                              cond, mutex, mutex_type(mutex), 0, 0);
   CALL_FN_W_WW(ret, fn, cond, mutex);
   VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_COND_WAIT,
-                             cond, mutex, ret == 0, 0, 0);
+                             cond, mutex, 1, 0, 0);
   return ret;
 }
 
@@ -477,7 +477,7 @@ PTH_FUNC(int, pthreadZucondZutimedwaitZa, // pthread_cond_timedwait*
                              cond, mutex, mutex_type(mutex), 0, 0);
   CALL_FN_W_WWW(ret, fn, cond, mutex, abstime);
   VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_COND_WAIT,
-                             cond, mutex, ret == 0, 0, 0);
+                             cond, mutex, 1, 0, 0);
   return ret;
 }