|
From: <sv...@va...> - 2011-03-17 10:18:31
|
Author: bart
Date: 2011-03-17 10:18:22 +0000 (Thu, 17 Mar 2011)
New Revision: 11648
Log:
Un-break drd/tests/tc23_bogus_condwait.
Modified:
trunk/helgrind/tests/tc23_bogus_condwait.c
Modified: trunk/helgrind/tests/tc23_bogus_condwait.c
===================================================================
--- trunk/helgrind/tests/tc23_bogus_condwait.c 2011-03-17 07:45:46 UTC (rev 11647)
+++ trunk/helgrind/tests/tc23_bogus_condwait.c 2011-03-17 10:18:22 UTC (rev 11648)
@@ -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 @@
my_sem_wait( quit_now );
return NULL;
}
+
void* grab_the_lock ( void* uu )
{
int r= pthread_mutex_lock( &mx[2] ); assert(!r);
|