From 75d2c41f1f088f4bfd4955b5d29ea235383d66b3 Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Mon, 2 Feb 2015 13:16:37 -0800 Subject: [PATCH] fix pthreadtest contended mutex test case --- tests/pthreadtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pthreadtest.c b/tests/pthreadtest.c index 0c84038..5fbd443 100644 --- a/tests/pthreadtest.c +++ b/tests/pthreadtest.c @@ -93,7 +93,7 @@ main(int argc, const char *argv[]) // Mutex Contention Test printf("contended mutex lock test\n"); pthread_mutex_init(&mtx, NULL); - status = pthread_create(&thr, NULL, thread_simple, (void *)1); + status = pthread_create(&thr, NULL, thread_lock, (void *)1); assert(status == 0); for (i = 0; i < 100; i++) { status = pthread_mutex_lock(&mtx);