From 56073c9eacb10783c1e3f075850eddcb64383bb2 Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 6 Dec 2006 00:03:42 +0000 Subject: [PATCH] initialize mutex and cv. --- tools/regression/pthread/cv_cancel1/cv_cancel1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/regression/pthread/cv_cancel1/cv_cancel1.c b/tools/regression/pthread/cv_cancel1/cv_cancel1.c index 22d82185e7e0..cacad44c2280 100644 --- a/tools/regression/pthread/cv_cancel1/cv_cancel1.c +++ b/tools/regression/pthread/cv_cancel1/cv_cancel1.c @@ -31,8 +31,8 @@ #define NLOOPS 10 -pthread_mutex_t m; -pthread_cond_t cv; +pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t cv = PTHREAD_COND_INITIALIZER; int wake; int stop;