Lines Matching refs:thread_state
31 static int thread_state;
39 thread_state = ENTERED_THREAD;
54 thread_state = EXITING_THREAD;
87 thread_state = NOT_CREATED_THREAD;
98 }while (thread_state !=EXITING_THREAD && cnt++ < 2);
100 if(thread_state == EXITING_THREAD)
107 else if(thread_state != ENTERED_THREAD)
109 printf("Unexpected thread state: %d\n", thread_state);
135 }while (thread_state != EXITING_THREAD && cnt++ < 3);
137 if(thread_state == ENTERED_THREAD)
143 else if(thread_state != EXITING_THREAD)
145 printf("main: Unexpected thread state: %d\n", thread_state);