Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#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_STACKSIZE)) |
static | K_THREAD_STACK_ARRAY_DEFINE (multi_stack_take, 5,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
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) |
void | test_multiple_thread_sem_usage (void) |
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) |
void | test_multi_thread_sem_limit (void) |
Test max semaphore can be give and take with multiple thread. More... | |
void | test_main (void) |
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 int | 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_STACKSIZE) |
#define TOTAL_MAX (4U) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |