8000 Add locking to setting and getting the default Logger by tgoyne · Pull Request #6398 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add locking to setting and getting the default Logger #6398

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

Merged
merged 2 commits into from
Mar 23, 2023
Merged

Conversation

tgoyne
Copy link
Member
@tgoyne tgoyne commented Mar 20, 2023

There's no (reasonable) way to externally guarantee that calls to Logger:get_default_logger() and
Logger::set_default_logger() won't race, so they need internal locking.

@tgoyne tgoyne self-assigned this Mar 20, 2023
@cla-bot cla-bot bot added the cla: yes label Mar 20, 2023
There's no (reasonable) way to externally guarantee that calls to
Logger:get_default_logger() and Logger::set_default_logger() won't race, so
they need internal locking.
@tgoyne tgoyne force-pushed the tg/logger-locking branch from fa1b300 to 84c1ec4 Compare March 20, 2023 19:53
@tgoyne tgoyne requested a review from jedelbo March 20, 2023 21:01
Copy link
Contributor
@jedelbo jedelbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tgoyne tgoyne merged commit 7eac25f into master Mar 23, 2023
@tgoyne tgoyne deleted the tg/logger-locking branch March 23, 2023 17:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0