zephyr/lib/os
Damian Krolik 73802412a8 lib: os: mpsc_pbuf: take spinlock in utilization getters
Two public functions do not take the spinlock even though
they access mutable, non-atomic members of the buffer:
- mpsc_pbuf_get_utilization()
- mpsc_pbuf_get_max_utilization()

Take the spinlock to avoid possible data races.

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
2025-02-18 13:30:29 +01:00
..
zvfs
assert.c
cbprintf_complete.c
cbprintf_nano.c
cbprintf_packaged.c
cbprintf.c
CMakeLists.txt
fdtable.c
Kconfig
Kconfig.cbprintf
mpsc_pbuf.c
mutex.c
p4wq.c
poweroff.c
printk.c
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c
user_work.c