Lines Matching refs:threads

73     struct child_thread_args    *threads;  member
486 static int join_threads(struct child_thread_args *threads, size_t num_threads) in join_threads() argument
493 if (threads[i].t != NULL) { in join_threads()
494 ossl_crypto_thread_native_join(threads[i].t, &rv); in join_threads()
496 if (!threads[i].testresult) in join_threads()
500 ossl_crypto_thread_native_clean(threads[i].t); in join_threads()
501 threads[i].t = NULL; in join_threads()
504 ossl_crypto_mutex_free(&threads[i].m); in join_threads()
532 : &h->threads[thread_idx].s_checked_out; in s_checked_out_p()
610 join_threads(h->threads, h->num_threads); in helper_cleanup()
612 OPENSSL_free(h->threads); in helper_cleanup()
613 h->threads = NULL; in helper_cleanup()
1162 if (h->threads[i].m == NULL) in run_script_worker()
1165 ossl_crypto_mutex_lock(h->threads[i].m); in run_script_worker()
1166 done = h->threads[i].done; in run_script_worker()
1167 ossl_crypto_mutex_unlock(h->threads[i].m); in run_script_worker()
1867 if (!TEST_ptr_null(h->threads)) { in run_script_worker()
1872 h->threads = OPENSSL_zalloc(op->arg1 * sizeof(struct child_thread_args)); in run_script_worker()
1873 if (!TEST_ptr(h->threads)) in run_script_worker()
1879 h->threads[i].h = h; in run_script_worker()
1880 h->threads[i].script = op->arg0; in run_script_worker()
1881 h->threads[i].script_name = script_name; in run_script_worker()
1882 h->threads[i].thread_idx = i; in run_script_worker()
1884 h->threads[i].m = ossl_crypto_mutex_new(); in run_script_worker()
1885 if (!TEST_ptr(h->threads[i].m)) in run_script_worker()
1888 h->threads[i].t in run_script_worker()
1890 &h->threads[i], 1); in run_script_worker()
1891 if (!TEST_ptr(h->threads[i].t)) in run_script_worker()
2098 if (!TEST_true(join_threads(h.threads, h.num_threads))) in run_script()