Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 6 of 6) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_pthread_server.c95 static pthread_info_t threads[MAX_NUM_THREADS]; variable
247 if (threads[i].active == 0) { in thread_create()
251 if (threads[i].data.thread_complete == 1) { in thread_create()
253 pthread_join(threads[i].thread, NULL); in thread_create()
254 memset(&threads[i], 0, sizeof(pthread_info_t)); in thread_create()
266 memcpy(&threads[i].data, &base_info, sizeof(base_info)); in thread_create()
267 threads[i].active = 1; in thread_create()
268 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create()
270 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create()
271 &threads[i].data)) != 0) { in thread_create()
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_init.function218 mbedtls_test_thread_t *threads = NULL;
220 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
225 * threads. */
228 mbedtls_test_thread_create(&threads[i],
235 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
242 /* Test initialising PSA whilst also testing flags on other threads. */
248 mbedtls_test_thread_create(&threads[i],
254 mbedtls_test_thread_create(&threads[i],
262 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
268 mbedtls_free(threads);
Dtest_suite_ctr_drbg.function350 mbedtls_test_thread_t *threads = NULL;
367 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
401 mbedtls_test_thread_create(&threads[i],
407 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0);
418 mbedtls_free(threads);
Dtest_suite_psa_crypto.function1348 * threads attempt to load/destroy the key, exactly one thread succeeds. */
1356 * that once imported by some thread, all threads can use the key. */
1383 * threads running this function is larger than the number of
1406 * 2: N threads reserve an empty key slot in psa_import_key,
1956 mbedtls_test_thread_t *threads = NULL;
1978 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count);
1980 /* Test that when multiple threads import the same key,
1982 * Also test that all threads can use the key as soon as it has been
1986 mbedtls_test_thread_create(&threads[i], thread_import_key,
1990 /* Join threads. */
[all …]
/openthread-latest/third_party/mbedtls/repo/docs/architecture/psa-thread-safety/
Dpsa-thread-safety.md14 - The testing system has now been made thread-safe. Tests can now spin up multiple threads, see [Th…
23 …tion describes the properties that are followed when PSA functions are invoked by multiple threads.
24 …e-guide) section gives guidance on initializing, using and freeing PSA when using multiple threads.
33 …nvironments, an application can make calls to the Crypto API in separate threads. In such an envir…
43 … section for details on how to correctly initialize the PSA subsystem when using multiple threads).
93 2. The resources from the key have been freed. This allows threads to create similar keys immediate…
101 …or drivers. Driver entry points may be called concurrently from multiple threads. Threads can conc…
115 …o `psa_crypto_init` are explicitly allowed. It is valid to have multiple threads each calling `psa…
119threads can use any PSA function if there is no overlap between their calls. All threads share the…
121 …ntial execution. For example, multiple threads attempting to load the same persistent key can lead…
[all …]
/openthread-latest/third_party/mbedtls/repo/docs/architecture/
Dpsa-shared-memory.md126 > In an environment with multiple threads or with shared memory, the implementation carefully acces…