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

Threadpool tasks: wait for futures to be ready in destructor #5410

Closed
wants to merge 1 commit into from

Conversation

ypatia
Copy link
Member

@ypatia ypatia commented Dec 18, 2024

This is an improvement for the new Task classes introduced in #5391 . Tasks will now wait in their destructors for their futures to be ready before the object is freed.


TYPE: IMPROVEMENT
DESC: Threadpool tasks: wait for futures to be ready in destructor

@teo-tsirpanis
Copy link
Member

I'm not sure if it's a good idea; I'm worried that this will lead to deadlocks, and make it impossible to have "fire-and-forget" tasks, which might come in handy in the future.

@ypatia
Copy link
Member Author

ypatia commented Dec 20, 2024

Moving to draft for now.

@ypatia ypatia marked this pull request as draft December 20, 2024 15:06
@ypatia
Copy link
Member Author

ypatia commented Jan 3, 2025

I will close this as we probably don't want/need to implement this.

@ypatia ypatia closed this Jan 3, 2025
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