Lines Matching refs:thread_join_data

261 thread_join_t *thread_join_data;  variable
279 switch (thread_join_data[tid].state) { in pthread_join()
281 thread_join_data[tid].state = pthreads_st_exited_waited; in pthread_join()
282 *status = thread_join_data[tid].status; in pthread_join()
284 COND_SIGNAL(&thread_join_data[tid].cond); in pthread_join()
292 int state = (int)thread_join_data[tid].status; in pthread_join()
294 thread_join_data[tid].state = pthreads_st_none; in pthread_join()
305 thread_join_data[tid].state = pthreads_st_waited; in pthread_join()
306 thread_join_data[tid].status = (void *)status; in pthread_join()
307 COND_INIT(&thread_join_data[tid].cond); in pthread_join()
308 cond = thread_join_data[tid].cond; in pthread_join()
309 COND_WAIT(&thread_join_data[tid].cond, &start_thread_mutex); in pthread_join()
317 pthreads_state_string(thread_join_data[tid].state)); in pthread_join()
359 if (thread_join_data) { in pthread_startit()
360 Renew(thread_join_data, thread_join_count, thread_join_t); in pthread_startit()
361 Zero(thread_join_data + oc, thread_join_count - oc, thread_join_t); in pthread_startit()
363 Newxz(thread_join_data, thread_join_count, thread_join_t); in pthread_startit()
366 if (thread_join_data[tid].state != pthreads_st_none) { in pthread_startit()
372 tid, pthreads_state_string(thread_join_data[tid].state)); in pthread_startit()
374 thread_join_data[tid].status = (void*)thread_join_data[tid].state; in pthread_startit()
375 thread_join_data[tid].state = pthreads_st_norun; in pthread_startit()
379 thread_join_data[tid].state = pthreads_st_run; in pthread_startit()
384 switch (thread_join_data[tid].state) { in pthread_startit()
386 COND_SIGNAL(&thread_join_data[tid].cond); in pthread_startit()
387 thread_join_data[tid].state = pthreads_st_none; in pthread_startit()
388 *((void**)thread_join_data[tid].status) = rc; in pthread_startit()
391 thread_join_data[tid].state = pthreads_st_none; in pthread_startit()
396 thread_join_data[tid].state = pthreads_st_exited; in pthread_startit()
397 thread_join_data[tid].status = rc; in pthread_startit()
398 COND_INIT(&thread_join_data[tid].cond); in pthread_startit()
399 COND_WAIT(&thread_join_data[tid].cond, &start_thread_mutex); in pthread_startit()
400 COND_DESTROY(&thread_join_data[tid].cond); in pthread_startit()
401 thread_join_data[tid].state = pthreads_st_none; /* Ready to reuse */ in pthread_startit()
404 state = thread_join_data[tid].state; in pthread_startit()
449 switch (thread_join_data[tid].state) { in pthread_detach()
455 thread_join_data[tid].state = pthreads_st_detached; in pthread_detach()
460 COND_SIGNAL(&thread_join_data[tid].cond); in pthread_detach()
468 int state = (int)thread_join_data[tid].status; in pthread_detach()
470 thread_join_data[tid].state = pthreads_st_none; in pthread_detach()
480 pthreads_state_string(thread_join_data[tid].state)); in pthread_detach()