Skip to content

feat(runqueue): Add espp::RunQueue component#397

Merged
finger563 merged 2 commits intomainfrom
feat/runqueue
Mar 6, 2025
Merged

feat(runqueue): Add espp::RunQueue component#397
finger563 merged 2 commits intomainfrom
feat/runqueue

Conversation

@finger563
Copy link
Contributor

Description

  • Add new RunQueue component for asynchronously running functions in a separate thread without having to allocate separate thread objects and with support for prioritization

Motivation and Context

The RunQueue helps minimize wasted heap when you need to trigger many different functions to run asynchronously and sporadically - preventing you from having to allocate different tasks statically for them, when you are OK with prioritized / best-effort execution of the functions.

How has this been tested?

Build and run the new runqueue/example on QtPy ESP32s3

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2025-03-06 at 14 38 32

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Hardware (schematic, board, system design) change
  • Software change

Checklist:

  • My change requires a change to the documentation.
  • I have added / updated the documentation related to this change via either README or WIKI

Software

  • I have added tests to cover my changes.
  • I have updated the .github/workflows/build.yml file to add my new test to the automated cloud build github action.
  • All new and existing tests passed.
  • My code follows the code style of this project.

* Add new `RunQueue` component for asynchronously running functions in a separate thread without having to allocate separate thread objects and with support for prioritization

The RunQueue helps minimize wasted heap when you need to trigger many different functions to run asynchronously and sporadically - preventing you from having to allocate different tasks statically for them, when you are OK with prioritized / best-effort execution of the functions.

Build and run the new `runqueue/example` on QtPy ESP32s3
@finger563 finger563 self-assigned this Mar 6, 2025
@finger563 finger563 added enhancement New feature or request run queue labels Mar 6, 2025
@github-actions
Copy link

github-actions bot commented Mar 6, 2025

✅Static analysis result - no issues found! ✅

@finger563 finger563 merged commit 10f450a into main Mar 6, 2025
75 checks passed
@finger563 finger563 deleted the feat/runqueue branch March 6, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request run queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant