From e3dc1cde2000d840a54815f30f381fd5fef3f9d9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 17 Mar 2011 10:18:22 +0000 Subject: [PATCH] Un-break drd/tests/tc23_bogus_condwait. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11648 --- helgrind/tests/tc23_bogus_condwait.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helgrind/tests/tc23_bogus_condwait.c b/helgrind/tests/tc23_bogus_condwait.c index a13632ce22..4c7e55bcc3 100644 --- a/helgrind/tests/tc23_bogus_condwait.c +++ b/helgrind/tests/tc23_bogus_condwait.c @@ -7,9 +7,8 @@ #include #include #include -pthread_mutex_t mx[4]; -pthread_cond_t cv; -pthread_rwlock_t rwl; +pthread_mutex_t mx[4]; +pthread_cond_t cv; pthread_rwlock_t rwl; sem_t* quit_now; static sem_t* my_sem_init(char*, int, unsigned); static int my_sem_destroy(sem_t*); @@ -35,6 +34,7 @@ void* rescue_me ( void* uu ) my_sem_wait( quit_now ); return NULL; } + void* grab_the_lock ( void* uu ) { int r= pthread_mutex_lock( &mx[2] ); assert(!r); -- 2.47.2