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

easy_lock: add a pthread_mutex_t fallback #12090

Closed
wants to merge 1 commit into from

Conversation

hwti
Copy link
Contributor

@hwti hwti commented Oct 11, 2023

This allows to keep the init threadsafe with gcc < 4.9.0 (no C11 atomics).

This allows to keep the init threadsafe with gcc < 4.9.0 (no C11 atomics).
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

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

Oh, this looks like a pretty clever approach when pthreads is already in use!

@jay jay closed this in 5adb600 Oct 13, 2023
@jay
Copy link
Member

jay commented Oct 13, 2023

Thanks

@hwti hwti deleted the easy_lock-pthread_mutex_t branch October 13, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants