2 /* Test stack unwinding for pthread_cond_wait function */
19 pthread_mutex_lock(&mtx);
20 pthread_cond_wait(&cv, &mtx);
21 pthread_mutex_unlock(&mtx);
22 printf("Bug, thread shouldn't be here.\n");
31 pthread_mutex_init(&mtx, NULL);
32 pthread_cond_init(&cv, NULL);
33 pthread_create(&td, NULL, thr, NULL);
36 pthread_join(td, NULL);