Skip to content

Use only one pthread "key" #2

@nicowilliams

Description

@nicowilliams

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions