Home
last modified time | relevance | path

Searched refs:sem1 (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c148 sem_t *sem1, *sem2, *different_sem1; in ZTEST() local
151 sem1 = sem_open(NULL, 0, 0, 0); in ZTEST()
153 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
157 sem1 = sem_open("sem1", 0, 0, 0); in ZTEST()
159 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
170 sem1 = sem_open(name_too_long, 0, 0, 0); in ZTEST()
173 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
177 sem1 = sem_open("sem1", O_CREAT, 0, (CONFIG_POSIX_SEM_VALUE_MAX + 1)); in ZTEST()
179 zassert_equal_ptr(sem1, SEM_FAILED); in ZTEST()
183 sem1 = sem_open("sem1", O_CREAT, 0, 0); in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/sys_kernel/src/
Dsema.c11 struct k_sem sem1; variable
21 k_sem_init(&sem1, 0, 1); in sema_test_init()
44 k_sem_take(&sem1, K_FOREVER); in sema_thread1()
68 k_sem_give(&sem1); in sema_thread2()
92 k_sem_give(&sem1); in sema_thread3()
179 k_sem_give(&sem1); in sema_test()
/Zephyr-latest/tests/net/lib/coap_client/src/
Dmain.c39 K_SEM_DEFINE(sem1, 0, 1);
57 .user_data = &sem1,
505 k_sem_reset(&sem1); in test_setup()
634 req.user_data = &sem1; in ZTEST()
641 zassert_ok(k_sem_take(&sem1, K_MSEC(COAP_SEPARATE_TIMEOUT))); in ZTEST()
649 req.user_data = &sem1; in ZTEST()
661 zassert_ok(k_sem_take(&sem1, K_MSEC(COAP_SEPARATE_TIMEOUT))); in ZTEST()
670 req1.user_data = &sem1; in ZTEST()
679 zassert_ok(k_sem_take(&sem1, K_MSEC(MORE_THAN_EXCHANGE_LIFETIME_MS))); in ZTEST()
710 req1.user_data = &sem1; in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/obj_validation/src/
Dmain.c17 extern struct k_sem sem1;
24 K_SEM_DEFINE(sem1, 0, 1);
93 object_permission_checks(&sem1, true); in ZTEST()
/Zephyr-latest/tests/kernel/obj_core/obj_core/src/
Dmain.c49 static K_SEM_DEFINE(sem1, 0, 1);
65 k_sem_take(&sem1, K_FOREVER); in thread_entry()
283 K_OBJ_CORE(&sem1), K_OBJ_CORE(&sem2)); in ZTEST()