|
From: <sv...@va...> - 2009-05-06 07:28:48
|
Author: njn
Date: 2009-05-06 08:28:38 +0100 (Wed, 06 May 2009)
New Revision: 9786
Log:
Add a missing rwlock initialisation.
Modified:
trunk/drd/tests/rwlock_test.c
Modified: trunk/drd/tests/rwlock_test.c
===================================================================
--- trunk/drd/tests/rwlock_test.c 2009-05-06 06:58:09 UTC (rev 9785)
+++ trunk/drd/tests/rwlock_test.c 2009-05-06 07:28:38 UTC (rev 9786)
@@ -36,6 +36,7 @@
pthread_t tid[thread_count];
int i;
+ pthread_rwlock_init(&s_rwlock, NULL);
for (i = 0; i < thread_count; i++)
{
pthread_create(&tid[i], 0, thread_func, 0);
|