Skip to content

Events did not write to the running flag meaning in edge cases could run twice #41

@davetcc

Description

@davetcc

We've strengthened up the checks around the running flag, and also improved the behavior of the currently running task pointer as well.

It was possible if yieldForMicros was used in an event that it could run again within the yieldForMicros function if an interrupt was triggered. This is not standard behavior and the new behavior prevents this, just leaving the event to be triggered again later.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcritical

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions