This will allow other modules, and synchronous functions like interrupts and init procedures to register tasks, e.g. syscalls, drivers ...
Problem: mutex will stay locked at all time.
Make a lazy static AsyncMutexed executor.
This will allow other modules, and synchronous functions like interrupts and init procedures to register tasks, e.g. syscalls, drivers ...
Problem: mutex will stay locked at all time.
juju
changed title from Static executor to Spawner2022-12-30 12:55:13 +00:00
No idea for now so I went back to a static executor for now just so I can start working on syscalls which will need to register async tasks in their interrupt handler.
No idea for now so I went back to a static executor for now just so I can start working on syscalls which will need to register async tasks in their interrupt handler.
Static ececutorto Static executorMake a lazy static AsyncMutexed executor.
This will allow other modules, and synchronous functions like interrupts and init procedures to register tasks, e.g. syscalls, drivers ...
Problem: mutex will stay locked at all time.
Static executorto SpawnerMutexed executor is a paved road to race conditions, implement a spawner instead with a task queue shared with the executor
No idea for now so I went back to a static executor for now just so I can start working on syscalls which will need to register async tasks in their interrupt handler.