Lines Matching full:spinlock
9 #include <zephyr/spinlock.h>
25 * @brief Tests for spinlock
27 * @defgroup kernel_spinlock_tests Spinlock Tests
36 * @brief Test basic spinlock
42 ZTEST(spinlock, test_spinlock_basic) in ZTEST() argument
47 zassert_true(!z_spin_is_locked(&l), "Spinlock initialized to locked"); in ZTEST()
51 zassert_true(z_spin_is_locked(&l), "Spinlock failed to lock"); in ZTEST()
55 zassert_true(!z_spin_is_locked(&l), "Spinlock failed to unlock"); in ZTEST()
121 * @brief Test spinlock with bounce
127 ZTEST(spinlock, test_spinlock_bounce) in ZTEST() argument
158 ZTEST(spinlock, test_spinlock_mutual_exclusion) in ZTEST() argument
168 zassert_true(z_spin_is_locked(&lock_runtime), "Spinlock failed to lock"); in ZTEST()
188 zassert_true(!z_spin_is_locked(&lock_runtime), "Spinlock failed to unlock"); in ZTEST()
209 ZTEST(spinlock, test_trylock) in ZTEST() argument
238 ZTEST_SUITE(spinlock, NULL, NULL, before, NULL, NULL);