Skip to content
Commit 64451449 authored by Dong Wang's avatar Dong Wang Committed by Dan Kalowsky
Browse files

logging: Ensure atomic update of log filter slot in LOG_FILTER_SLOT_SET



Replaced the read-modify-write sequence with a single read and write
operation, preventing the intermediate value is wrongly used to filter
out logs of another thread with higher priority that preempts the current
thread.

Signed-off-by: default avatarDong Wang <dong.d.wang@intel.com>
(cherry picked from commit 872f3636)
parent 79696d42
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment