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

refactor: event system locking #254

Merged
merged 1 commit into from
Nov 28, 2024
Merged

refactor: event system locking #254

merged 1 commit into from
Nov 28, 2024

Conversation

agaffney
Copy link
Contributor

This reduces lock contention in the event system by using a RWMutex and only write-locking when modifying the subscribers. It also makes the lock internal only to prevent unexpected deadlocks.

This reduces lock contention in the event system by using a RWMutex and
only write-locking when modifying the subscribers. It also makes the
lock internal only to prevent unexpected deadlocks.
@agaffney agaffney merged commit 91f92cf into main Nov 28, 2024
6 checks passed
@agaffney agaffney deleted the refactor/event-lock branch November 28, 2024 18:36
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