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

Make context injector init thread local on class change #7402

Closed
wants to merge 1 commit into from

Conversation

luneo7
Copy link
Contributor

@luneo7 luneo7 commented Aug 8, 2024

What Does This Do

Make context injector init thread local on class change

Motivation

Adds a safeguard for the class being injected, since a thread can handle multiple injections and a visitEnd might not be triggered in all cases to clean the threadlocals

@luneo7 luneo7 changed the title tMake context injector inject only when last injector Make context injector inject only when last injector Aug 8, 2024
@luneo7 luneo7 changed the title Make context injector inject only when last injector Make context injector init thread local on class change Aug 8, 2024
@luneo7 luneo7 marked this pull request as ready for review August 9, 2024 00:31
@luneo7 luneo7 requested a review from a team as a code owner August 9, 2024 00:31
@luneo7 luneo7 requested review from dougqh and ygree August 9, 2024 00:31
@mcculls
Copy link
Contributor

mcculls commented Aug 9, 2024

I'd prefer to merge #7403 because it avoids adding a thread-local

@luneo7
Copy link
Contributor Author

luneo7 commented Aug 9, 2024

Wonderful!

@luneo7 luneo7 closed this Aug 9, 2024
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