Lines Matching refs:t
62 CRYPTO_THREAD *t; in test_thread_native() local
67 t = ossl_crypto_thread_native_start(test_thread_native_fn, &local, 1); in test_thread_native()
68 if (!TEST_ptr(t)) in test_thread_native()
77 if (!TEST_int_eq(ossl_crypto_thread_native_join(t, &retval), 1)) in test_thread_native()
79 if (!TEST_int_eq(ossl_crypto_thread_native_join(t, &retval), 1)) in test_thread_native()
85 if (!TEST_int_eq(ossl_crypto_thread_native_clean(t), 1)) in test_thread_native()
87 t = NULL; in test_thread_native()
89 if (!TEST_int_eq(ossl_crypto_thread_native_clean(t), 0)) in test_thread_native()
102 void *t[3]; in test_thread_internal() local
125 t[0] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[0]); in test_thread_internal()
126 if (!TEST_ptr_null(t[0])) in test_thread_internal()
137 t[0] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[0]); in test_thread_internal()
138 if (!TEST_ptr_null(t[0])) in test_thread_internal()
150 t[0] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[0]); in test_thread_internal()
151 if (!TEST_ptr_null(t[0])) in test_thread_internal()
165 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
168 t[i] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[0]); in test_thread_internal()
169 if (!TEST_ptr(t[i])) in test_thread_internal()
178 if (!TEST_int_eq(ossl_crypto_thread_join(t[i], &retval[0]), 1)) in test_thread_internal()
180 if (!TEST_int_eq(ossl_crypto_thread_join(t[i], &retval[0]), 1)) in test_thread_internal()
186 if (!TEST_int_eq(ossl_crypto_thread_clean(t[i]), 1)) in test_thread_internal()
188 t[i] = NULL; in test_thread_internal()
190 if (!TEST_int_eq(ossl_crypto_thread_clean(t[i]), 0)) in test_thread_internal()
196 if (!TEST_int_eq(OSSL_set_max_threads(NULL, OSSL_NELEM(t)), 1)) in test_thread_internal()
199 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
201 t[i] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[i]); in test_thread_internal()
202 if (!TEST_ptr(t[i])) in test_thread_internal()
205 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
206 if (!TEST_int_eq(ossl_crypto_thread_join(t[i], &retval[i]), 1)) in test_thread_internal()
209 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
212 if (!TEST_int_eq(ossl_crypto_thread_clean(t[i]), 1)) in test_thread_internal()
218 if (!TEST_int_eq(OSSL_set_max_threads(NULL, OSSL_NELEM(t) - 1), 1)) in test_thread_internal()
221 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
223 t[i] = ossl_crypto_thread_start(NULL, test_thread_native_fn, &local[i]); in test_thread_internal()
224 if (!TEST_ptr(t[i])) in test_thread_internal()
227 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
228 if (!TEST_int_eq(ossl_crypto_thread_join(t[i], &retval[i]), 1)) in test_thread_internal()
231 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
234 if (!TEST_int_eq(ossl_crypto_thread_clean(t[i]), 1)) in test_thread_internal()
267 CRYPTO_THREAD *t, *t1, *t2; in test_thread_native_multiple_joins() local
269 t = ossl_crypto_thread_native_start(test_thread_native_multiple_joins_fn1, NULL, 1); in test_thread_native_multiple_joins()
270 t1 = ossl_crypto_thread_native_start(test_thread_native_multiple_joins_fn2, t, 1); in test_thread_native_multiple_joins()
271 t2 = ossl_crypto_thread_native_start(test_thread_native_multiple_joins_fn3, t, 1); in test_thread_native_multiple_joins()
273 if (!TEST_ptr(t) || !TEST_ptr(t1) || !TEST_ptr(t2)) in test_thread_native_multiple_joins()
287 if (!TEST_int_eq(ossl_crypto_thread_native_clean(t), 1)) in test_thread_native_multiple_joins()