Skip to content

Threadpool Refactor #1168

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Threadpool Refactor #1168

wants to merge 17 commits into from

Conversation

COM8
Copy link
Member

@COM8 COM8 commented Jan 26, 2025

Refactors cpr::ThreadPool to get rid of all those deadlocks and overly complex code making it at least a bit simpler.

Fixes:

Docs:

@COM8 COM8 changed the title WIP: Threadpool Refactor Threadpool Refactor Feb 2, 2025
@COM8 COM8 added this to the CPR 1.12.0 milestone Feb 2, 2025
@COM8 COM8 force-pushed the feature/thread_pool_v2 branch 3 times, most recently from eba6332 to a6c8fca Compare February 14, 2025 16:28
@portsip
Copy link

portsip commented Mar 8, 2025

Hi, I would like to suggest use a third thread pool implementation: https://github.com/bshoshany/thread-pool

@COM8
Copy link
Member Author

COM8 commented Mar 20, 2025

Hi, I would like to suggest use a third thread pool implementation: https://github.com/bshoshany/thread-pool

Agree. If I'm unable to fix the macos socket issues, I will most likely switch and experiment with that one. Good point.

@portsip
Copy link

portsip commented Mar 20, 2025

The ASIO thread pool is also a good choice.

@COM8 COM8 force-pushed the feature/thread_pool_v2 branch from a15f238 to bba1f7c Compare March 30, 2025 12:23
@COM8 COM8 self-assigned this Mar 30, 2025
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.

Thread Pool Deadlock While Task Wait Force the end of the thread pool
2 participants