Lines Matching refs:thread_state
32 static int thread_state;
34 /* thread_state indicates child thread state:
48 thread_state = ENTERED_THREAD;
64 thread_state = EXITING_THREAD;
89 thread_state = NOT_CREATED_THREAD;
102 }while (thread_state != EXITING_THREAD && cnt++ < 3);
104 if(thread_state == EXITING_THREAD)
109 else if(thread_state != ENTERED_THREAD)
111 printf("Unexpected thread state: %d\n", thread_state);
115 /* thread_state == ENTERED_THREAD, i.e. thread correctly blocks on write lock */
127 }while (thread_state != EXITING_THREAD && cnt++ < 3);
129 if(thread_state != EXITING_THREAD)