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

Use only one pthread "key" #2

Open
nicowilliams opened this issue May 6, 2023 · 0 comments
Open

Use only one pthread "key" #2

nicowilliams opened this issue May 6, 2023 · 0 comments
Assignees

Comments

@nicowilliams
Copy link
Owner

Calling pthread_key_create() every time thread_safe_var_init() is called is too resource intensive in that some C libraries only support a limited number of keys. We only need one key as we use them just to drive cleanup on thread exit.

This is important if libraries like OpenSSL are going to use this.

@nicowilliams nicowilliams self-assigned this May 6, 2023
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

No branches or pull requests

1 participant