Lines Matching refs:thread2
110 printf("thread2: Error at pthread_rwlock_init\n");
119 printf("thread2: attempt timed lock for writing\n");
123 printf("thread2: timer expired\n");
128 printf("thread2: acquired write lock\n");
130 printf("thread2: unlock write lock\n");
133 printf("thread2: failed to release write lock\n");
139 printf("thread2: Error in pthread_rwlock_timedwrlock().\n");
145 printf("thread2: Error at pthread_rwlock_destroy()\n");
157 pthread_t thread1, thread2;
202 printf("main: create thread2\n");
203 if(pthread_create(&thread2, NULL, fn_wr_2, NULL) != 0)
205 printf("Error when creating thread2\n");
212 /* we expect thread2 NOT to block */
223 printf("Test FAILED: thread2 got ETIMEOUT\n");
229 printf("Test FAILED: thread2 blocked\n");
234 printf("Unexpected state for thread2 %d\n", thread_state);
238 if(pthread_join(thread2, NULL) != 0)
240 printf("Error when join thread2\n");