Home
last modified time | relevance | path

Searched refs:spsc_consumable (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/lib/lockfree/src/
Dtest_spsc.c38 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
42 zassert_equal(spsc_consumable(&ezspsc), 1, "Consumables should be 1"); in ZTEST()
46 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
80 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
88 zassert_equal(spsc_consumable(&ezspsc), 3, "Consumables should be 3"); in ZTEST()
98 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
/Zephyr-latest/include/zephyr/sys/
Dspsc_lockfree.h281 #define spsc_consumable(spsc) ({ (spsc)->_spsc.in - (spsc)->_spsc.out - (spsc)->_spsc.consume; }) macro