Lines Matching refs:fprintf
39 fprintf(stderr,"[Thread 0x%p] failed to acquire the mutex\n",(void*)self);
42 fprintf(stderr,"[Thread 0x%p] started and locked the mutex\n", (void*)self);
45 fprintf(stderr,"[Thread 0x%p] is waiting for the cond\n", (void*)self);
48 fprintf(stderr,"pthread_cond_wait return %d\n", rc);
53 fprintf(stderr,"[Thread 0x%p] should not be able to lock the mutex again\n",
58 fprintf(stderr,"[Thread 0x%p] was wakened and acquired the mutex again\n", (void*)self);
62 fprintf(stderr,"[Thread 0x%p] failed to release the mutex\n", (void*)self);
66 fprintf(stderr,"[Thread 0x%p] released the mutex\n", (void*)self);
76 fprintf(stderr,"Fail to initialize mutex\n");
80 fprintf(stderr,"Fail to initialize cond\n");
86 fprintf(stderr,"Fail to create thread[%d]\n", i);
96 fprintf(stderr,"Main: Fail to acquire mutex\n");
100 fprintf(stderr,"Main: Fail to release mutex\n");
105 fprintf(stderr,"[Main thread] broadcast the condition\n");
108 fprintf(stderr,"[Main thread] failed to broadcast the condition\n");
113 fprintf(stderr,"[Main thread] Not all waiters were wakened\n");
119 fprintf(stderr,"[Main thread] all waiters were wakened\n");
124 fprintf(stderr,"Fail to join thread[%d]\n", i);