Home
last modified time | relevance | path

Searched refs:sync_sema (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-3.5.0/tests/benchmarks/footprints/src/
Dworkq.c15 struct k_sem sync_sema; variable
27 k_sem_give(&sync_sema); in user_workq_func()
36 k_sem_give(&sync_sema); in workq_func()
47 k_sem_reset(&sync_sema); in simple_workq_thread()
51 k_sem_take(&sync_sema, K_FOREVER); in simple_workq_thread()
62 k_sem_reset(&sync_sema); in delayed_workq_thread()
66 k_sem_take(&sync_sema, K_FOREVER); in delayed_workq_thread()
76 k_sem_reset(&sync_sema); in simple_user_workq_thread()
80 k_sem_take(&sync_sema, K_FOREVER); in simple_user_workq_thread()
88 k_sem_init(&sync_sema, 0, 1); in run_workq()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/workq/user_work/src/
Dmain.c25 static struct k_sem sync_sema; variable
38 k_sem_give(&sync_sema); in common_work_handler()
63 k_sem_reset(&sync_sema); in test_k_work_user_submit_to_queue_fail()
76 k_sem_take(&sync_sema, K_FOREVER); in test_k_work_user_submit_to_queue_fail()
99 k_sem_give(&sync_sema); in work_handler()
172 k_sem_reset(&sync_sema); in test_user_work_submit_to_queue_thread()
175 k_sem_take(&sync_sema, K_FOREVER); in test_user_work_submit_to_queue_thread()
182 k_thread_access_grant(main_thread, &sync_sema, &user_workq.thread, in workq_setup()
185 k_sem_init(&sync_sema, SYNC_SEM_INIT_VAL, NUM_OF_WORK); in workq_setup()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_concept/src/
Dtest_mslab_alloc_wait.c17 static struct k_sem sync_sema; variable
27 k_sem_give(&sync_sema); in tmslab_alloc_wait_timeout()
33 k_sem_give(&sync_sema); in tmslab_alloc_wait_ok()
56 k_sem_init(&sync_sema, 0, THREAD_NUM); in ZTEST()
90 k_sem_take(&sync_sema, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/profiling/profiling_api/src/
Dmain.c17 static struct k_sem sync_sema; variable
47 k_sem_give(&sync_sema); in work_handler()
105 k_sem_init(&sync_sema, 0, NUM_OF_WORK); in ZTEST()
109 k_sem_take(&sync_sema, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/mem_heap/mheap_api_concept/src/
Dtest_mheap_concept.c14 struct k_sem sync_sema; variable
62 k_sem_give(&sync_sema); in tmheap_handler()
83 k_sem_init(&sync_sema, 0, THREAD_NUM); in ZTEST()
93 k_sem_take(&sync_sema, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/mbox/mbox_usage/src/
Dmain.c21 static struct k_sem sync_sema; variable
88 k_sem_init(&sync_sema, 0, 2); in test_mbox_init()
146 k_sem_give(&sync_sema); in thread_low_prio()
163 k_sem_give(&sync_sema); in thread_high_prio()
171 k_sem_reset(&sync_sema); in ZTEST_USER()
193 k_sem_take(&sync_sema, K_FOREVER); in ZTEST_USER()
194 k_sem_take(&sync_sema, K_FOREVER); in ZTEST_USER()
/Zephyr-Core-3.5.0/tests/benchmarks/latency_measure/src/
Dcoop_ctx_switch.c44 K_SEM_DEFINE(sync_sema, 0, 1);
56 k_sem_take(&sync_sema, K_FOREVER); in thread_one()
80 k_sem_give(&sync_sema); in thread_two()
/Zephyr-Core-3.5.0/tests/kernel/mbox/mbox_api/src/
Dtest_mbox_api.c37 static struct k_sem end_sema, sync_sema; variable
66 k_sem_give(&sync_sema); in async_put_sema_give()
140 k_mbox_async_put(pmbox, &mmsg, &sync_sema); in tmbox_put()
142 k_sem_take(&sync_sema, K_FOREVER); in tmbox_put()
171 k_sem_take(&sync_sema, K_FOREVER); in tmbox_put()
178 k_sem_take(&sync_sema, K_FOREVER); in tmbox_put()
182 k_mbox_async_put(pmbox, &mmsg, &sync_sema); in tmbox_put()
204 k_mbox_async_put(pmbox, &mmsg, &sync_sema); in tmbox_put()
206 k_sem_take(&sync_sema, K_FOREVER); in tmbox_put()
210 k_sem_take(&sync_sema, K_FOREVER); in tmbox_put()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/sched/schedule_api/src/
Dtest_sched_priority.c16 static struct k_sem sync_sema; variable
28 k_sem_take(&sync_sema, K_MSEC(100)); in thread_entry_prio()
129 k_sem_init(&sync_sema, 0, THREAD_NUM); in ZTEST()
159 k_sem_give(&sync_sema); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_apis/src/
Dtest_threads_cancel_abort.c13 K_SEM_DEFINE(sync_sema, 0, 1);