Home | History | Annotate | Download | only in pthread_cond_signal

Lines Matching defs:thread

29 pthread_t thread[THREAD_NUM];
40 pthread_cancel(thread[i]);
52 fprintf(stderr, "[Thread 0x%p] failed to acquire the mutex\n",
56 fprintf(stderr, "[Thread 0x%p] started\n", (void *)self);
59 fprintf(stderr, "[Thread 0x%p] is waiting for the cond\n",
66 fprintf(stderr, "[Thread 0x%p] was wakened\n", (void *)self);
70 fprintf(stderr, "[Thread 0x%p] failed to release the mutex\n",
92 if (pthread_create(&thread[i], NULL, thr_func, NULL) != 0) {
93 fprintf(stderr, "Fail to create thread[%d]\n", i);
108 fprintf(stderr, "[Main thread] signals a condition\n");
122 if (pthread_join(thread[i], NULL) != 0) {
123 fprintf(stderr, "Fail to join thread[%d]\n", i);