Skip to content

Task registry connecting threads #21795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

jvolmer
Copy link
Contributor

@jvolmer jvolmer commented Jun 3, 2025

This adds several capabilities to the task registry:

  • You can now a thread task, meaning you execute some lambda in a new thread and this lambda execution is a new task with its parent beeing the currently running task on the old thread.
  • You can schedule a task on the scheduler. The task state is then 'Scheduled'. As soon as the scheduler executes the task, the state changes to 'Running'.
  • A task can have a printer object. A user can define such an object, which needs to implement auto operator()() -> std::string. This method is executed as soon as a snapshot of a task is requested. This way, a string is only created when really needed.

@jvolmer jvolmer self-assigned this Jun 3, 2025
@cla-bot cla-bot bot added the cla-signed label Jun 3, 2025
@jvolmer jvolmer marked this pull request as draft June 10, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant