X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftest_mutex.c;h=b493c4d44e0581eb02e4c8c6b1c214beeb43405a;hb=ae938926a4fa1411c7ed12e2be9ef98b40a1e028;hp=41b13d8b98f1eb21064cc9a4abf806abbc1cd283;hpb=3c5a11c57a53e330bbb519a5f5ea67b1690119fb;p=userspace-rcu.git diff --git a/tests/test_mutex.c b/tests/test_mutex.c index 41b13d8..b493c4d 100644 --- a/tests/test_mutex.c +++ b/tests/test_mutex.c @@ -70,7 +70,7 @@ struct test_array { int a; }; -static pthread_mutex_t lock; +static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; static volatile int test_go, test_stop;