Home | History | Annotate | Download | only in pthread_cond_signal

Lines Matching defs:thread

9  *   When each thread unblocked as a result of pthread_cond_signal()
10 * returns from its call to pthread_cond_timedwait(), the thread shall
43 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n",
47 fprintf(stderr, "[Thread 0x%p] started and locked the mutex\n",
59 "[Thread 0x%p] is waiting for the cond for at most %d secs\n",
63 fprintf(stderr, "[Thread 0x%p] pthread_cond_wait returned %d\n",
70 "[Thread 0x%p] should be able to lock the recursive mutex again\n",
76 "[Thread 0x%p] was wakened and acquired the mutex again\n",
81 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n",
88 "[Thread 0x%p] did not owned the mutex after the cond wait\n",
93 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self);
100 pthread_t thread[THREAD_NUM];
122 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) {
123 fprintf(stderr, "Fail to create thread[%d]\n", i);
133 fprintf(stderr, "[Main thread] signals a condition\n");
143 if (pthread_join(thread[i], NULL) != 0) {
144 fprintf(stderr, "Fail to join thread[%d]\n", i);