TcMenu / TaskManagerIO

A task, event, scheduling, and interrupt marshalling library for Arduino and mbed boards.
Apache License 2.0
122 stars 12 forks source link

When memory is exhausted taskblock failure should be handled better. #20

Closed davetcc closed 3 years ago

davetcc commented 3 years ago

At the moment there is an assumption that task manager will not allocate beyond the available memory size. However, it should handle this failure of allocation better in TaskManager::findFreeTask(). It should not increase the size of the taskBlocks and return failure.