Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define | PRIO_WAIT (CONFIG_ZTEST_THREAD_PRIORITY) |
#define | PRIO_WAKE (CONFIG_ZTEST_THREAD_PRIORITY) |
#define | TOTAL_THREADS_WAITING (3) |
#define | TCOUNT 10 |
#define | COUNT_LIMIT 12 |
Functions | |
K_THREAD_STACK_DEFINE (stack_1,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
K_THREAD_STACK_DEFINE (condvar_wake_stack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
K_MUTEX_DEFINE (test_mutex) | |
K_THREAD_STACK_ARRAY_DEFINE (multiple_stack,(3),(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
K_THREAD_STACK_ARRAY_DEFINE (multiple_wake_stack,(3),(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
void | condvar_isr_wake (const void *condvar) |
void | condvar_wake_from_isr (struct k_condvar *condvar) |
void | condvar_wait_task (void *p1, void *p2, void *p3) |
void | condvar_wake_task (void *p1, void *p2, void *p3) |
void | condvar_wake_multiple (void *p1, void *p2, void *p3) |
void | condvar_wait_wake_task (void *p1, void *p2, void *p3) |
ZTEST_USER (condvar_tests, test_condvar_wait_forever_wake) | |
Test k_condvar_wait() and k_condvar_wake() | |
ZTEST_USER (condvar_tests, test_condvar_wait_timeout_wake) | |
ZTEST_USER (condvar_tests, test_condvar_wait_timeout) | |
ZTEST_USER (condvar_tests, test_condvar_wait_forever) | |
Test k_condvar_wait() forever. | |
ZTEST_USER (condvar_tests, test_condvar_wait_nowait) | |
ZTEST_USER (condvar_tests, test_condvar_wait_nowait_wake) | |
ZTEST (condvar_tests, test_condvar_wait_forever_wake_from_isr) | |
ZTEST_USER (condvar_tests, test_condvar_multiple_threads_wait_wake) | |
void | condvar_multiple_wait_wake_task (void *p1, void *p2, void *p3) |
void | condvar_multiple_wake_task (void *p1, void *p2, void *p3) |
ZTEST_USER (condvar_tests, test_multiple_condvar_wait_wake) | |
static void | cond_init_null (void *p1, void *p2, void *p3) |
ZTEST_USER (condvar_tests, test_condvar_init_null) | |
static void | cond_signal_null (void *p1, void *p2, void *p3) |
static void | cond_broadcast_null (void *p1, void *p2, void *p3) |
static void | cond_wait_null (void *p1, void *p2, void *p3) |
ZTEST_USER (condvar_tests, test_condvar_signal_null) | |
ZTEST_USER (condvar_tests, test_condvar_broadcast_null) | |
ZTEST_USER (condvar_tests, test_condvar_wait_null) | |
void | inc_count (void *p1, void *p2, void *p3) |
void | watch_count (void *p1, void *p2, void *p3) |
ZTEST_USER (condvar_tests, test_condvar_usecase_signal) | |
ZTEST_USER (condvar_tests, test_condvar_usecase_broadcast) | |
static void * | condvar_tests_setup (void) |
ZTEST_SUITE (condvar_tests, NULL, condvar_tests_setup, NULL, NULL, NULL) | |
Variables | |
struct k_thread | condvar_tid |
struct k_thread | condvar_wake_tid |
struct k_condvar | simple_condvar |
ZTEST_BMEM int | woken |
ZTEST_BMEM int | timeout |
ZTEST_BMEM int | index [(3)] |
ZTEST_BMEM int | count |
struct k_condvar | multiple_condvar [(3)] |
struct k_thread | multiple_tid [(3)] |
struct k_thread | multiple_wake_tid [(3)] |
#define COUNT_LIMIT 12 |
#define PRIO_WAIT (CONFIG_ZTEST_THREAD_PRIORITY) |
#define PRIO_WAKE (CONFIG_ZTEST_THREAD_PRIORITY) |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define TCOUNT 10 |
#define TOTAL_THREADS_WAITING (3) |
|
static |
|
static |
|
static |
|
static |
void condvar_isr_wake | ( | const void * | condvar | ) |
void condvar_multiple_wait_wake_task | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
void condvar_multiple_wake_task | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
|
static |
void condvar_wait_task | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
void condvar_wait_wake_task | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
void condvar_wake_from_isr | ( | struct k_condvar * | condvar | ) |
void condvar_wake_multiple | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
void condvar_wake_task | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
void inc_count | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
K_MUTEX_DEFINE | ( | test_mutex | ) |
K_THREAD_STACK_ARRAY_DEFINE | ( | multiple_stack | , |
(3) | , | ||
(512+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
) |
K_THREAD_STACK_ARRAY_DEFINE | ( | multiple_wake_stack | , |
(3) | , | ||
(512+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | condvar_wake_stack | , |
(512+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | stack_1 | , |
(512+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
) |
void watch_count | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
ZTEST | ( | condvar_tests | , |
test_condvar_wait_forever_wake_from_isr | |||
) |
ZTEST_SUITE | ( | condvar_tests | , |
NULL | , | ||
condvar_tests_setup | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_broadcast_null | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_init_null | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_multiple_threads_wait_wake | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_signal_null | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_usecase_broadcast | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_usecase_signal | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_forever | |||
) |
Test k_condvar_wait() forever.
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_forever_wake | |||
) |
Test k_condvar_wait() and k_condvar_wake()
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_nowait | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_nowait_wake | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_null | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_timeout | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_condvar_wait_timeout_wake | |||
) |
ZTEST_USER | ( | condvar_tests | , |
test_multiple_condvar_wait_wake | |||
) |
struct k_thread condvar_tid |
struct k_thread condvar_wake_tid |
ZTEST_BMEM int count |
ZTEST_BMEM int index[(3)] |
struct k_condvar multiple_condvar[(3)] |
struct k_thread multiple_tid[(3)] |
struct k_thread multiple_wake_tid[(3)] |
struct k_condvar simple_condvar |
ZTEST_BMEM int timeout |
ZTEST_BMEM int woken |