Skip to content

[atomics] Initialize pthread_mutex_t and avoid false sharing #94387

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

Conversation

MaskRay
Copy link
Member

@MaskRay MaskRay commented Jun 4, 2024

PTHREAD_MUTEX_INITIALIZER is zeroes for glibc and musl, but it improves
conformance and might work with more libc implementations.

Follow-up to #94374

Created using spr 1.3.5-bogner
@Logikable
Copy link
Contributor

LGTM, thanks :)

@MaskRay MaskRay merged commit a5729b7 into main Jun 4, 2024
7 of 8 checks passed
@MaskRay MaskRay deleted the users/MaskRay/spr/atomics-initialize-pthread_mutex_t-and-avoid-false-sharing branch June 4, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants