Lines Matching refs:threads
1327 * threads attempt to load/destroy the key, exactly one thread succeeds. */
1335 * that once imported by some thread, all threads can use the key. */
1362 * threads running this function is larger than the number of
1385 * 2: N threads reserve an empty key slot in psa_import_key,
1936 mbedtls_test_thread_t *threads = NULL;
1958 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
1960 /* Test that when multiple threads import the same key,
1962 * Also test that all threads can use the key as soon as it has been
1966 mbedtls_test_thread_create(&threads[i], thread_import_key,
1970 /* Join threads. */
1972 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
1975 /* Test that when multiple threads use and destroy a key no corruption
1979 mbedtls_test_thread_create(&threads[i], thread_use_and_destroy_key,
1983 /* Join threads. */
1985 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
1992 mbedtls_free(threads);
10109 mbedtls_test_thread_t *threads = NULL;
10128 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
10130 /* Split threads to generate key then destroy key. */
10133 mbedtls_test_thread_create(&threads[i], thread_generate_key,
10137 /* Join threads. */
10139 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
10143 mbedtls_free(threads);