TcMenu / TaskManagerIO

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

Setting an event complete at the same time as adding a task is unstable. #14

Closed davetcc closed 4 years ago

davetcc commented 4 years ago

When a task is added in the exec() method of an event, and that event is marked completed in the same method, there is currently instability. The newly added task is often times not run and the attempted removal of an already released task causes instability.

davetcc commented 4 years ago

This is for emergency patch release, as soon as tested on a range of boards.

davetcc commented 4 years ago

Unit tests passed on AVR, SAMD, ESP8266 and ESP32. Testing applications on all platforms.