mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-09 03:20:35 +08:00
c46274043f
what could have gone wrong before? A scheduling switch during the printload could have led to a task exit, rendering the tcb invalid. After switching back, printload would access invalid memory. This keeps the sched_lock() section as small as possible, just grabbing the tcb variables we need.