Skip to content
Commit 872f3636 authored by Dong Wang's avatar Dong Wang Committed by Benjamin Cabé
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>
parent 3fac8315
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment