commit | ffc5bdffbbc7f30188ed3fce0e33716d5ee7b90b | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Sat Sep 05 11:44:01 2020 -0700 |
committer | Maureen Helm <maureen.helm@nxp.com> | Wed Sep 16 13:11:12 2020 -0500 |
tree | 923a3f9c0529c34e7421f658b3892ee12a4f0dff | |
parent | 339c8b1b0072177ddb29eecf4314afa614b490ed [diff] |
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: Andrew Boie <andrew.p.boie@intel.com>