Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Implement OnIdle event in SmartThreadPool#40

Open
Oreeeee wants to merge 1 commit intoamibar:mainamibar/SmartThreadPool:mainfrom
Oreeeee:isidle-in-stpOreeeee/SmartThreadPool:isidle-in-stpCopy head branch name to clipboard
Open

Implement OnIdle event in SmartThreadPool#40
Oreeeee wants to merge 1 commit intoamibar:mainamibar/SmartThreadPool:mainfrom
Oreeeee:isidle-in-stpOreeeee/SmartThreadPool:isidle-in-stpCopy head branch name to clipboard

Conversation

@Oreeeee
Copy link

@Oreeeee Oreeeee commented Dec 28, 2025

This adds support for OnIdle event in the SmartThreadPool class, so it's not limited to WorkItemGroup anymore. This works by firing the event when IsIdle changes from false to true. From my testing, this works as expected in a small pool (4 threads with 100 queued CPU-heavy jobs).

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.