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

sched: hold spinlock in z_thread_timeout()



We are checking and modifying members of thread->base
(in particular it's waitq and thread_state) which are
nominally protected by sched_spinlock. Hold it while
doing this to avoid concurrent changes on another CPU
or ISR preeemption.

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