Skip to content
Commit 8e0f6a59 authored by Andrew Boie's avatar Andrew Boie Committed by Maureen Helm
Browse files

sched: hold spinlock in z_time_slice()



We are checking thread->base members like thread_state and prio
and making decisions based on it, hold the sched_spinlock to
avoid potential concurrency problems if these members are modified
on another CPU or nested interrupt.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 83d7770d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment