Home
last modified time | relevance | path

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

/Zephyr-latest/tests/benchmarks/sys_kernel/src/
Dsema.c12 struct k_sem sem2; variable
22 k_sem_init(&sem2, 0, 1); in sema_test_init()
45 k_sem_give(&sem2); in sema_thread1()
69 k_sem_take(&sem2, K_FOREVER); in sema_thread2()
93 while (k_sem_take(&sem2, K_NO_WAIT) != 0) { in sema_thread3()
180 k_sem_take(&sem2, K_FOREVER); in sema_test()
/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c148 sem_t *sem1, *sem2, *different_sem1; in ZTEST() local
186 sem2 = sem_open("sem2", O_CREAT, 0, 0); in ZTEST()
187 zassert_equal(nsem_get_ref_count(sem2), 2); in ZTEST()
200 zassert_equal_ptr(new_sem2, sem2); in ZTEST()
204 zassert_equal(nsem_get_ref_count(sem2), 2 + i); in ZTEST()
226 zassert_ok(sem_close(sem2)); in ZTEST()
227 zassert_equal(nsem_get_ref_count(sem2), 2 + i - 1); in ZTEST()
275 zassert_ok(sem_close(sem2)); in ZTEST()
276 zassert_equal(nsem_get_ref_count(sem2), 1); in ZTEST()
/Zephyr-latest/tests/net/lib/coap_client/src/
Dmain.c40 K_SEM_DEFINE(sem2, 0, 1);
67 .user_data = &sem2,
506 k_sem_reset(&sem2); in test_setup()
671 req2.user_data = &sem2; in ZTEST()
684 zassert_ok(k_sem_take(&sem2, K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS))); in ZTEST()
711 req2.user_data = &sem2; in ZTEST()
718 zassert_ok(k_sem_take(&sem2, K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS))); in ZTEST()
754 req2.user_data = &sem2; in ZTEST()
766 zassert_ok(k_sem_take(&sem2, K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS))); in ZTEST()
835 req2.user_data = &sem2; in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/obj_validation/src/
Dmain.c25 static struct k_sem sem2; variable
94 object_permission_checks(&sem2, false); in ZTEST()
/Zephyr-latest/tests/kernel/obj_core/obj_core/src/
Dmain.c50 static struct k_sem sem2; variable
280 k_sem_init(&sem2, 0, 1); in ZTEST()
283 K_OBJ_CORE(&sem1), K_OBJ_CORE(&sem2)); in ZTEST()
/Zephyr-latest/tests/subsys/tracing/tracing_api/src/
Dmain.c121 struct k_sem sem, sem2; in ZTEST() local
171 sys_trace_k_sem_take_enter(&sem2, timeout); in ZTEST()