Skip to content

Fix thread-safety issues in getloadavg on Windows #2591

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
Jun 25, 2025

Conversation

lysnikolaou
Copy link
Contributor

Summary

  • OS: Windows
  • Bug fix: yes
  • Type: core

Description

Lock around reading & writing of global state in getloadavg on Windows.

Lock around reading & writing of global state in `getloadavg`
on Windows.

Signed-off-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Copy link
Owner

@giampaolo giampaolo left a comment

Choose a reason for hiding this comment

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

Looks very good and makes sense to me. I just added a minor style-related comment.

Signed-off-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
@giampaolo giampaolo merged commit 028f3eb into giampaolo:master Jun 25, 2025
16 checks passed
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