Searched refs:threads (Results 1 – 6 of 6) sorted by relevance
/mbedtls/programs/ssl/ |
A D | ssl_pthread_server.c | 95 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 …]
|
/mbedtls/tests/suites/ |
A D | test_suite_psa_crypto_init.function | 218 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);
|
A D | test_suite_ctr_drbg.function | 350 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);
|
A D | test_suite_psa_crypto.function | 1956 mbedtls_test_thread_t *threads = NULL; 1980 /* Test that when multiple threads import the same key, 1990 /* Join threads. */ 1992 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0); 2003 /* Join threads. */ 2005 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0); 2012 mbedtls_free(threads); 10058 mbedtls_test_thread_t *threads = NULL; 10079 /* Split threads to generate key then destroy key. */ 10086 /* Join threads. */ [all …]
|
/mbedtls/docs/architecture/psa-thread-safety/ |
A D | psa-thread-safety.md | 14 - 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. 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… 119 …threads can use any PSA function if there is no overlap between their calls. All threads share the… 127 …ces. This is because any such operation would need to wait for all other threads to complete their… 129 `mbedtls_psa_crypto_free` must only be called by a single thread once all threads have completed th… 164 …he slot, this thread is responsible for the next state transition. Other threads cannot read the c… 255 …al tests to spin up multiple threads. This work has made the global variables used in tests thread… [all …]
|
/mbedtls/docs/architecture/ |
A D | psa-shared-memory.md | 126 > In an environment with multiple threads or with shared memory, the implementation carefully acces…
|
Completed in 32 milliseconds