Lines Matching refs:fprintf
38 fprintf(stderr,"[Thread 0x%p] failed to acquire the mutex\n", (void*)self);
41 fprintf(stderr,"[Thread 0x%p] started and locked the mutex\n", (void*)self);
44 fprintf(stderr,"[Thread 0x%p] is waiting for the cond\n", (void*)self);
47 fprintf(stderr,"pthread_cond_wait return %d\n", rc);
50 fprintf(stderr,"[Thread 0x%p] was wakened\n", (void*)self);
54 fprintf(stderr,"[Thread 0x%p] failed to release the mutex\n", (void*)self);
66 fprintf(stderr,"Fail to initialize mutex\n");
70 fprintf(stderr,"Fail to initialize cond\n");
76 fprintf(stderr,"Fail to create thread[%d]\n", i);
86 fprintf(stderr,"Main: Fail to acquire mutex\n");
90 fprintf(stderr,"Main: Fail to release mutex\n");
96 fprintf(stderr,"[Main thread] broadcast the condition\n");
100 fprintf(stderr,"pthread_cond_broadcast returns EINVAL\n");
104 fprintf(stderr,"pthread_cond_broadcast returns %d\n",rc);
109 fprintf(stderr,"[Main thread] pthread_cond_broadcast() returned 0\n");
112 fprintf(stderr,"[Main thread] Not all waiters were wakened\n");
118 fprintf(stderr,"[Main thread] all waiters were wakened\n");
123 fprintf(stderr,"Fail to join thread[%d]\n", i);