|
Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Macros | |
| #define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
| #define | SEM_INIT_VAL (0U) |
| #define | SEM_MAX_VAL (3U) |
| #define | TOTAL_MAX (4U) |
| #define | STACK_NUMS 5 |
| #define | PRIO 5 |
| #define | LOW_PRIO 8 |
| #define | HIGH_PRIO 2 |
Functions | |
| static | K_THREAD_STACK_ARRAY_DEFINE (multi_stack_give, 5,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| static | K_THREAD_STACK_ARRAY_DEFINE (multi_stack_take, 5,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| static void | sem_thread_give_uninit (void *p1, void *p2, void *p3) |
| static void | sem_thread_give (void *p1, void *p2, void *p3) |
| static void | thread_low_prio_sem_take (void *p1, void *p2, void *p3) |
| static void | thread_high_prio_sem_take (void *p1, void *p2, void *p3) |
| ZTEST_USER (kernel_sys_sem, test_multiple_thread_sem_usage) | |
| Test semaphore usage with multiple thread. More... | |
| static void | multi_thread_sem_give (void *p1, void *p2, void *p3) |
| static void | multi_thread_sem_take (void *p1, void *p2, void *p3) |
| ZTEST_USER (kernel_sys_sem, test_multi_thread_sem_limit) | |
| Test max semaphore can be give and take with multiple thread. More... | |
| void * | test_init (void) |
| ZTEST_SUITE (kernel_sys_sem, NULL, test_init, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL) | |
Variables | |
| static struct k_thread | multi_tid_give [5] |
| static struct k_thread | multi_tid_take [5] |
| static struct k_sem usage_sem sync_sem limit_sem | uninit_sem |
| static ZTEST_DMEM int | flag |
| static ZTEST_DMEM atomic_t | atomic_count |
| #define HIGH_PRIO 2 |
| #define LOW_PRIO 8 |
| #define PRIO 5 |
| #define SEM_INIT_VAL (0U) |
| #define SEM_MAX_VAL (3U) |
| #define STACK_NUMS 5 |
| #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
| #define TOTAL_MAX (4U) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void * test_init | ( | void | ) |
|
static |
|
static |
| ZTEST_SUITE | ( | kernel_sys_sem | , |
| NULL | , | ||
| test_init | , | ||
| ztest_simple_1cpu_before | , | ||
| ztest_simple_1cpu_after | , | ||
| NULL | |||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |