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

nvapi: Guard interface registry lookups with a mutex #242

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

Saancreed
Copy link
Collaborator

Might be a bit heavy-handed but inserts can cause rehashing to occur and (afaiu) because of it it's not safe to read from the map during this time on another thread.

Maybe some rwlock would make more sense? Not sure. To be reconsidered it it causes performance problems.

@Saancreed Saancreed force-pushed the query-interface-lock branch from 0ab7f11 to 942e9fd Compare January 14, 2025 23:33
@Saancreed Saancreed marked this pull request as ready for review January 15, 2025 00:01
@Saancreed Saancreed requested a review from jp7677 January 15, 2025 00:01
@jp7677 jp7677 merged commit c4f243d into master Jan 15, 2025
4 checks passed
@Saancreed Saancreed deleted the query-interface-lock branch January 15, 2025 09:27
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