mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 07:28:21 -04:00
lIndexOfLastAddedTask is shared between two separate functions that should run consecutively but in some cases the thread running can be yield in between which results in broken thread stack. This change reduces the risk but it does not entirely solve the problem. It is still possible for the threads to return in different order. Nevertheless the tests did not confirm that.