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

fix: move task such as it is destory after complete, to release potential shared ptr holding #15633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

superMan-1012
Copy link

This commit refactors the BoundedQueue class to intelligently handle element assignments by distinguishing between move-assignable and non-move-assignable types. By introducing templated assign functions and updating the Dequeue method accordingly, the queue now benefits from optimized performance without sacrificing compatibility

@CLAassistant
Copy link

CLAassistant commented Jan 8, 2025

CLA assistant check
All committers have signed the CLA.

@superMan-1012 superMan-1012 force-pushed the feature/optimize_task_dequeue branch from 586acd0 to 09a4798 Compare January 9, 2025 08:30
@superMan-1012 superMan-1012 force-pushed the feature/optimize_task_dequeue branch from 09a4798 to 33ed29b Compare January 9, 2025 08:34
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