]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break drd/tests/tc23_bogus_condwait.
authorBart Van Assche <bvanassche@acm.org>
Thu, 17 Mar 2011 10:18:22 +0000 (10:18 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 17 Mar 2011 10:18:22 +0000 (10:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11648

helgrind/tests/tc23_bogus_condwait.c

index a13632ce223744c7e6a279430237dbef0f98acf7..4c7e55bcc3affd186122242b23c0e398b4e9bcf0 100644 (file)
@@ -7,9 +7,8 @@
 #include <semaphore.h>
 #include <stdio.h>
 #include <stdlib.h>
-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);