From fb8dc549cc1d81e0a2f7b5461017d61a46e990ff Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 6 May 2011 01:12:32 +0000 Subject: *** empty log message *** --- tests/rwlock6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/rwlock6.c') diff --git a/tests/rwlock6.c b/tests/rwlock6.c index 0ac6b27..f667ce5 100644 --- a/tests/rwlock6.c +++ b/tests/rwlock6.c @@ -52,7 +52,7 @@ void * wrfunc(void * arg) int ba; assert(pthread_rwlock_wrlock(&rwlock1) == 0); - Sleep(2000); + Sleep(200); bankAccount += 10; ba = bankAccount; assert(pthread_rwlock_unlock(&rwlock1) == 0); @@ -84,9 +84,9 @@ main() bankAccount = 0; assert(pthread_create(&wrt1, NULL, wrfunc, NULL) == 0); - Sleep(500); + Sleep(50); assert(pthread_create(&rdt, NULL, rdfunc, NULL) == 0); - Sleep(500); + Sleep(50); assert(pthread_create(&wrt2, NULL, wrfunc, NULL) == 0); assert(pthread_join(wrt1, &wr1Result) == 0); -- cgit v1.2.3