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

Use C11 threads.h for multithreading and synchronization #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LoganDark
Copy link

This was only really implemented on platforms like Windows around 6 months ago, but it seems to work everywhere now as long as you're using a recent enough compiler.

Closes #2

This was only really implemented on platforms like Windows around
6 months ago, but it seems to work everywhere *now* as long as you're
using a recent enough compiler.

Closes rkaehn#2
@LoganDark
Copy link
Author

LoganDark commented Mar 12, 2024

There's also an option of adding a define for the old fallbacks (pthreads/Windows.h), and using threads.h as the default. I'm a little concerned that threads.h might still not be particularly widely supported, but AFAIK, Clang, GCC and MSVC all have support now, which is most of the major ones. Not sure about ICC or anything, but who uses that?

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.

1 participant