Files
zephyr/kernel
Andy Ross 8bdabcc46b kernel/sched: Move thread suspend and abort under the scheduler lock
Historically, these routines were placed in thread.c and would use the
scheduler via exported, synchronized functions (e.g. "remove from
ready queue").  But those steps were very fine grained, and there were
races where the thread could be seen by other contexts (in particular
under SMP) in an intermediate state.  It's not completely clear to me
that any of these were fatal bugs, but it's very hard to prove they
weren't.

At best, this is fragile.  Move the z_thread_single_suspend/abort()
functions into the scheduler and do the scheduler logic in a single
critical section.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-01-08 14:21:10 +01:00
..
2019-09-26 21:13:20 -04:00
2019-11-07 15:21:46 -08:00
2019-11-07 15:21:46 -08:00
2019-11-07 15:21:46 -08:00
2019-11-07 15:21:46 -08:00
2019-11-07 15:21:46 -08:00
2020-01-07 17:13:37 +01:00
2020-01-03 11:26:46 -08:00
2019-11-07 15:21:46 -08:00
2019-11-07 15:21:46 -08:00