|
Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
Macros | |
| #define | ATOMIC_WORD(val_if_64, val_if_32) ((atomic_t)((sizeof(void *) == sizeof(uint64_t)) ? (val_if_64) : (val_if_32))) |
| #define | NUM_FLAG_BITS 100 |
| #define | TEST_CYCLE 20 |
| #define | THREADS_NUM 2 |
| #define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
Functions | |
| static | K_THREAD_STACK_ARRAY_DEFINE (stack, 2,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| ZTEST_USER (atomic, test_atomic) | |
| Verify atomic functionalities. More... | |
| void | atomic_handler (void *p1, void *p2, void *p3) |
| ZTEST (atomic, test_threads_access_atomic) | |
| Verify atomic operation with threads. More... | |
Variables | |
| static struct k_thread | thread [2] |
| atomic_t | total_atomic |
| #define ATOMIC_WORD | ( | val_if_64, | |
| val_if_32 | |||
| ) | ((atomic_t)((sizeof(void *) == sizeof(uint64_t)) ? (val_if_64) : (val_if_32))) |
| #define NUM_FLAG_BITS 100 |
| #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
| #define TEST_CYCLE 20 |
| #define THREADS_NUM 2 |
|
static |
|
static |
| atomic_t total_atomic |