Searched refs:limit_sem (Results 1 – 1 of 1) sorted by relevance
/Zephyr-Core-3.7.0/tests/kernel/semaphore/sys_sem/src/ |
D | main.c | 25 static struct k_sem usage_sem, sync_sem, limit_sem, uninit_sem; variable 134 k_sem_give(&limit_sem); in multi_thread_sem_give() 137 zassert_equal(k_sem_count_get(&limit_sem), count, "multi get sem error"); in multi_thread_sem_give() 139 zassert_equal(k_sem_count_get(&limit_sem), SEM_MAX_VAL, "count > SEM_MAX_VAL"); in multi_thread_sem_give() 149 k_sem_take(&limit_sem, K_FOREVER); in multi_thread_sem_take() 154 zassert_equal(k_sem_count_get(&limit_sem), count, "multi take sem error"); in multi_thread_sem_take() 156 zassert_equal(k_sem_count_get(&limit_sem), 0, "count < SEM_INIT_VAL"); in multi_thread_sem_take() 175 k_sem_init(&limit_sem, SEM_INIT_VAL, SEM_MAX_VAL); in ZTEST_USER() 204 k_thread_access_grant(k_current_get(), &usage_sem, &sync_sem, &limit_sem, in test_init()
|