Lines Matching full:atomic
8 #include <zephyr/sys/atomic.h>
14 /* an example of the number of atomic bit in an array */
36 * @brief Verify atomic functionalities
39 * - Test the function of the atomic operation API is correct.
53 * -# Call the API interface of the following atomic operations in turn,
97 ZTEST_USER(atomic, test_atomic) in ZTEST_USER() argument
284 "Failed to set a single bit in an array of atomic variables"); in ZTEST_USER()
287 "Failed to clear a single bit in an array of atomic variables"); in ZTEST_USER()
306 * @brief Verify atomic operation with threads
309 * atomically access the same atomic value. Because these preempt
317 ZTEST(atomic, test_threads_access_atomic) in ZTEST() argument
338 "atomic counting failure"); in ZTEST()
343 * if incremented in atomic and non-atomic manner
347 * of atomic_t will be the same in case of overflow if incremented in atomic
348 * and non-atomic manner. This allows us to increment an atomic variable
349 * in a non-atomic manner (as long as it is logically safe)
350 * and expect its value to match the result of the similar atomic increment.
354 ZTEST(atomic, test_atomic_overflow) in ZTEST() argument
387 ZTEST_SUITE(atomic, NULL, common_setup, NULL, NULL, NULL);