Skip to content
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

Add a DSL word that runs when a specific pool or all pools are idle #100

Merged
merged 22 commits into from
Feb 21, 2024

Conversation

TrentHouliston
Copy link
Member

@TrentHouliston TrentHouliston commented Nov 28, 2023

Adds a new DSL word Idle that can be used to execute a reaction when the pool does not have a current task.

There are 4 main variants that this implements

on<Idle<>>

Will execute when all non always threads are idle

on<Idle<Pool<>>

Will execute when the default thread pool is idle

on<Idle<MainThread>>

Will execute when the main thread's pool is idle

on<Idle<SomePoolDescriptor>>

Will execute when that specific pool is idle

  • Fix up the deadlock caused by the recursive mutex acquisition

@TrentHouliston TrentHouliston marked this pull request as ready for review February 21, 2024 03:38
@TrentHouliston TrentHouliston merged commit 1599e91 into main Feb 21, 2024
9 of 12 checks passed
@TrentHouliston TrentHouliston deleted the houliston/poolidle branch February 21, 2024 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants