Skip to content

easy_lock: add a pthread_mutex_t fallback#12090

Closed
hwti wants to merge 1 commit into
curl:masterfrom
hwti:easy_lock-pthread_mutex_t
Closed

easy_lock: add a pthread_mutex_t fallback#12090
hwti wants to merge 1 commit into
curl:masterfrom
hwti:easy_lock-pthread_mutex_t

Conversation

@hwti

@hwti hwti commented Oct 11, 2023

Copy link
Copy Markdown
Contributor

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).

@bagder bagder left a comment

Copy link
Copy Markdown
Member

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

jay commented Oct 13, 2023

Copy link
Copy Markdown
Member

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants