Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 21 of 21) sorted by relevance

/lib/mbedtls/external/mbedtls/tests/src/
A Dthreading_helpers.c18 static int threading_thread_create_pthread(mbedtls_test_thread_t *thread, void *(*thread_func)( in threading_thread_create_pthread() argument
21 if (thread == NULL || thread_func == NULL) { in threading_thread_create_pthread()
25 if (pthread_create(&thread->thread, NULL, thread_func, thread_data)) { in threading_thread_create_pthread()
32 static int threading_thread_join_pthread(mbedtls_test_thread_t *thread) in threading_thread_join_pthread() argument
34 if (thread == NULL) { in threading_thread_join_pthread()
38 if (pthread_join(thread->thread, NULL) != 0) { in threading_thread_join_pthread()
45 int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread, void *(*thread_func)(void *),
53 static int threading_thread_create_fail(mbedtls_test_thread_t *thread, in threading_thread_create_fail() argument
57 (void) thread; in threading_thread_create_fail()
64 static int threading_thread_join_fail(mbedtls_test_thread_t *thread) in threading_thread_join_fail() argument
[all …]
/lib/mbedtls/external/mbedtls/tests/include/test/
A Dthreading_helpers.h50 void mbedtls_test_thread_set_alt(int (*thread_create)(mbedtls_test_thread_t *thread,
54 int (*thread_join)(mbedtls_test_thread_t *thread));
61 pthread_t MBEDTLS_PRIVATE(thread);
82 extern int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread,
84 extern int (*mbedtls_test_thread_join)(mbedtls_test_thread_t *thread);
/lib/mbedtls/external/mbedtls/docs/architecture/psa-thread-safety/
A Dpsa-thread-safety.md3 Currently, PSA Crypto API calls in Mbed TLS releases are not thread-safe.
14 …testing system has now been made thread-safe. Tests can now spin up multiple threads, see [Thread-…
107thread-safe (`mbedtls_psa_random_init` and `mbedtls_psa_random_seed` are only thread-safe when cal…
133 …cribes how we have implemented thread-safety. There is discussion of: techniques, internal propert…
188 A thread can only traverse the key store while holding `mbedtls_threading_key_slot_mutex`, the set …
319 …g `psa_unregister_read`, the thread waits until the condition `slot->registered_readers == 1` is t…
320 * At this point, the destroying thread directly calls `psa_wipe_key_slot`.
343 In the non-thread-safe case we have these natural assumptions/requirements:
352 1. Non-thread-safe drivers must not call the core.
361 A driver would be non-thread-safe if the `thread-safe` property is set to true.
[all …]
/lib/lwip/lwip/doc/
A Dppp.txt52 for NO_SYS=1 systems or called inside lwIP core thread for NO_SYS=0 systems.
71 * core thread
274 * dead state (i.e. disconnected). We don't need to provide thread-safe
301 * dead state (i.e. disconnected). We don't need to provide thread-safe
392 if NO_SYS is 0, the thread safe way outside an interrupt context is to use
393 the pppos_input_tcpip() function to pass input data to the lwIP core thread
394 using the TCPIP API. This is thread safe in all cases but you should avoid
399 from an RX thread, however pppos_input() is not thread safe by itself. You can
402 at all. Using PPP_INPROC_IRQ_SAFE from an RX thread is discouraged unless you
424 There is a thread safe API for all corresponding ppp_* functions, you have to
[all …]
/lib/lwip/lwip/contrib/ports/unix/port/
A Dsys_arch.c157 struct sys_thread *thread; in introduce_thread() local
159 thread = (struct sys_thread *)malloc(sizeof(struct sys_thread)); in introduce_thread()
161 if (thread != NULL) { in introduce_thread()
163 thread->next = threads; in introduce_thread()
164 thread->pthread = id; in introduce_thread()
165 threads = thread; in introduce_thread()
169 return thread; in introduce_thread()
/lib/mbedtls/external/mbedtls/scripts/
A Dfootprint.sh104 doit thread configs/config-thread.h
/lib/mbedtls/external/mbedtls/programs/ssl/
A Dssl_pthread_server.c91 pthread_t thread; member
253 pthread_join(threads[i].thread, NULL); in thread_create()
270 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create()
/lib/lwip/lwip/contrib/ports/freertos/
A Dsys_arch.c462 sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio) in sys_thread_new() argument
478 ret = xTaskCreate(thread, name, (configSTACK_DEPTH_TYPE)rtos_stacksize, arg, prio, &rtos_task); in sys_thread_new()
/lib/mbedtls/external/mbedtls/
A DCMakeLists.txt226 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
227 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
241 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
242 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
A DChangeLog140 docs/architecture/psa-thread-safety/psa-thread-safety.md for more details.
3156 whose implementation should behave as a thread-safe version of gmtime().
3330 * Use gmtime_r/gmtime_s for thread-safety. Fixed by Nick Wilson.
4355 * Prepend a "thread identifier" to debug messages (issue pointed out by
4539 thread-safe if MBEDTLS_THREADING_C is enabled.
4599 * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
4928 now thread-safe if POLARSSL_THREADING_C defined
4971 * x509_get_current_time() uses localtime_r() to prevent thread issues
5277 * x509_get_current_time() uses localtime_r() to prevent thread issues
5299 * Changed RSA blinding to a slower but thread-safe version
/lib/lwip/lwip/contrib/apps/chargen/
A DREADME15 all handled by the same thread and select() is used for demultiplexing.
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_init.function132 /* If this is a test only thread, then we can assume PSA is being started
133 * up on another thread and thus we cannot know whether the following tests
A Dtest_suite_debug.function31 /* Skip "thread ID" (up to the first space) as it is not predictable */
A Dtest_suite_psa_crypto.function1356 * that once imported by some thread, all threads can use the key. */
1363 /* Import the key, exactly one thread must succeed. */
1379 /* If all of the key slots are reserved when a thread
1384 * free key slots. Each thread reserves an empty key slot,
1386 * It is at that point where the thread sees that the key
1395 /* The key has been loaded by a different thread. */
1410 * 4: This thread calls psa_get_key_attributes(skc->key,...):
1413 * This thread returns PSA_ERROR_INSUFFICIENT_MEMORY.
1444 /* Ensure that we are the only thread to succeed. */
1981 * exactly one thread succeeds and the rest fail with valid errors.
[all …]
/lib/lwip/lwip/src/include/lwip/
A Dsys.h420 sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int …
/lib/lwip/lwip/
A DUPGRADING53 These can be used to post preallocated messages from an ISR to the tcpip thread
106 * Added LWIP_NETCONN_SEM_PER_THREAD to use one "op_completed" semaphore per thread
A DCHANGELOG90 Call a function inside the tcpip thread and block the calling thread until
181 These can be used to post preallocated messages from an ISR to the tcpip thread
198 * netifapi: Add thread safe ARP cache APIs (task #14724)
534 * Cleanup TCPIP thread sync methods in a way that it is possibe to use them
535 in arbitrary code that needs things to be done in TCPIP thread. Used to
700 * api: added option LWIP_NETCONN_SEM_PER_THREAD to use a semaphore per thread
817 - Added PPP API "sequential" thread-safe API, based from NETIFAPI.
887 FIN segment; blocking the calling thread for a while is better than risking
2297 * pbuf.c: Fixed bug #28064: pbuf_alloc(PBUF_POOL) is not thread-safe by
3435 This is a fix for thread-safety and allocates all items needed for a netconn
[all …]
/lib/mbedtls/external/mbedtls/programs/
A DREADME.md77 * [`ssl/ssl_pthread_server.c`](ssl/ssl_pthread_server.c): a simple HTTPS server using one thread pe…
/lib/
A DKconfig1271 bool "Enable thread support"
1276 uthread_ interface enables the main thread of execution to create
1278 returned. At any point a thread may suspend its execution and
1279 schedule another thread, which allows for the efficient multiplexing
/lib/mbedtls/external/mbedtls/docs/proposed/
A Dpsa-driver-interface.md1235 In a multithreaded environment, the driver may only call these two functions from the thread that i…
1418 …e driver needs to remember which driver it's calling. This may require a thread-local variable in …
1450 …ce on multiprocessor systems, a multithreaded core could prefer to use one RNG instance per thread.
/lib/mbedtls/external/mbedtls/docs/architecture/
A Dpsa-shared-memory.md23 …ost systems don't offer a way to do it. (Even systems that have absolute thread priorities, and wh…

Completed in 78 milliseconds