Commit 73802412 authored by Damian Krolik's avatar Damian Krolik Committed by Benjamin Cabé
Browse files

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: default avatarDamian Krolik <damian.krolik@nordicsemi.no>
parent ece3f3b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment