Lines Matching refs:thread_idx
33 int thread_idx; member
116 int thread_idx; member
529 static int *s_checked_out_p(struct helper *h, int thread_idx) in s_checked_out_p() argument
531 return (thread_idx < 0) ? &h->s_checked_out in s_checked_out_p()
532 : &h->threads[thread_idx].s_checked_out; in s_checked_out_p()
537 int *p_checked_out = s_checked_out_p(h, hl == NULL ? -1 : hl->thread_idx); in s_lock()
551 int *p_checked_out = s_checked_out_p(h, hl->thread_idx); in s_unlock()
848 int thread_idx) in helper_local_init() argument
852 hl->thread_idx = thread_idx; in helper_local_init()
858 if (thread_idx < 0) { in helper_local_init()
874 if (hl->thread_idx >= 0) in helper_local_cleanup()
1026 int thread_idx) in run_script_worker() argument
1045 if (!TEST_true(helper_local_init(hl, h, thread_idx))) in run_script_worker()
1087 TEST_error("op %zu timed out on thread %d", op_idx + 1, thread_idx); in run_script_worker()
1095 if (thread_idx < 0) in run_script_worker()
1101 if (thread_idx < 0) { in run_script_worker()
1118 && (thread_idx >= 0 || connect_started)) in run_script_worker()
1121 if (thread_idx >= 0) { in run_script_worker()
1157 if (thread_idx < 0) { in run_script_worker()
1181 TEST_info("script \"%s\" finished on thread %d", script_name, thread_idx); in run_script_worker()
1235 if (thread_idx < 0 && h->check_spin_again) { in run_script_worker()
1882 h->threads[i].thread_idx = i; in run_script_worker()
2018 script_name, op_idx + 1, thread_idx); in run_script_worker()
2116 args->thread_idx); in run_script_child_thread()