fix pthreadtest contended mutex test case

This commit is contained in:
Ali Mashtizadeh 2015-02-02 13:16:37 -08:00
parent 41ba001828
commit 75d2c41f1f

View File

@ -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);