Lines Matching refs:thread_idx
33 int thread_idx; member
116 int thread_idx; member
526 static int *s_checked_out_p(struct helper *h, int thread_idx) in s_checked_out_p() argument
528 return (thread_idx < 0) ? &h->s_checked_out in s_checked_out_p()
529 : &h->threads[thread_idx].s_checked_out; in s_checked_out_p()
534 int *p_checked_out = s_checked_out_p(h, hl == NULL ? -1 : hl->thread_idx); in s_lock()
548 int *p_checked_out = s_checked_out_p(h, hl->thread_idx); in s_unlock()
845 int thread_idx) in helper_local_init() argument
849 hl->thread_idx = thread_idx; in helper_local_init()
855 if (thread_idx < 0) { in helper_local_init()
871 if (hl->thread_idx >= 0) in helper_local_cleanup()
1023 int thread_idx) in run_script_worker() argument
1042 if (!TEST_true(helper_local_init(hl, h, thread_idx))) in run_script_worker()
1084 TEST_error("op %zu timed out on thread %d", op_idx + 1, thread_idx); in run_script_worker()
1092 if (thread_idx < 0) in run_script_worker()
1098 if (thread_idx < 0) { in run_script_worker()
1115 && (thread_idx >= 0 || connect_started)) in run_script_worker()
1118 if (thread_idx >= 0) { in run_script_worker()
1154 if (thread_idx < 0) { in run_script_worker()
1178 TEST_info("script \"%s\" finished on thread %d", script_name, thread_idx); in run_script_worker()
1232 if (thread_idx < 0 && h->check_spin_again) { in run_script_worker()
1874 h->threads[i].thread_idx = i; in run_script_worker()
2010 script_name, op_idx + 1, thread_idx); in run_script_worker()
2108 args->thread_idx); in run_script_child_thread()