|
From: <sv...@va...> - 2008-03-30 08:39:50
|
Author: bart
Date: 2008-03-30 09:39:51 +0100 (Sun, 30 Mar 2008)
New Revision: 7815
Log:
Bug fix: DRD no longer complains that a mutex was not locked by the calling thread when unlocking a mutex after a call to pthread_cond_timedwait() that timed out.
Modified:
trunk/exp-drd/drd_pthread_intercepts.c
Modified: trunk/exp-drd/drd_pthread_intercepts.c
===================================================================
--- trunk/exp-drd/drd_pthread_intercepts.c 2008-03-29 14:42:59 UTC (rev 7814)
+++ trunk/exp-drd/drd_pthread_intercepts.c 2008-03-30 08:39:51 UTC (rev 7815)
@@ -459,7 +459,7 @@
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 @@
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;
}
|