mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
Start CallbackScheduler last (after other modules) to reduce risk of race conditions during bootup
This commit is contained in:
parent
9537cac701
commit
4d9f7a72db
@ -168,12 +168,13 @@ MODULE_INITCALL(SystemModInitialize, 0);
|
|||||||
*/
|
*/
|
||||||
static void systemTask(__attribute__((unused)) void *parameters)
|
static void systemTask(__attribute__((unused)) void *parameters)
|
||||||
{
|
{
|
||||||
/* start the delayed callback scheduler */
|
|
||||||
CallbackSchedulerStart();
|
|
||||||
uint8_t cycleCount = 0;
|
uint8_t cycleCount = 0;
|
||||||
/* create all modules thread */
|
/* create all modules thread */
|
||||||
MODULE_TASKCREATE_ALL;
|
MODULE_TASKCREATE_ALL;
|
||||||
|
|
||||||
|
/* start the delayed callback scheduler */
|
||||||
|
CallbackSchedulerStart();
|
||||||
|
|
||||||
if (mallocFailed) {
|
if (mallocFailed) {
|
||||||
/* We failed to malloc during task creation,
|
/* We failed to malloc during task creation,
|
||||||
* system behaviour is undefined. Reset and let
|
* system behaviour is undefined. Reset and let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user