Does any C library implement C11 threads for GNU/Linux?

前端 未结 7 1249
抹茶落季
抹茶落季 2020-11-29 02:59

There have been a lot of questions about C11 and C11 threading, but I don\'t see a definitive answer anywhere:

Does any C

相关标签:
7条回答
  • 2020-11-29 03:10

    Finally GNU LIBC 2.28 supports C11 ISO Threads.

    I assume Archlinux, Gentoo and Suse Tumbleweed will support it quickly. Later in this year Fedora and Ubuntu and the others in 2019 or later.

    0 讨论(0)
  • 2020-11-29 03:10

    FreeBSD provides threads.h since FreeBSD 10.0 The program needs to be linked against libstdsthreads.

    0 讨论(0)
  • 2020-11-29 03:17

    FreeBSD seems to wrap around the posix threads. You can find it here: FreeBSD c11 threads. I was able to use this in Cygwin. So far no problems but I haven't used it that much yet.

    0 讨论(0)
  • 2020-11-29 03:23

    PDCLib (the Public Domain C standard library) includes AFAICT full support for threads.h, and it's not a wrapper around pthreads.

    0 讨论(0)
  • 2020-11-29 03:26

    https://github.com/jtsiomb/c11threads is a "Trivial C11 threads.h implementation over POSIX threads." contained in a single header.

    0 讨论(0)
  • 2020-11-29 03:28

    musl now (as of Sep 2014-ish) implements C11 threads!

    According to this recent musl mailing list post and other conversation on that list in Jul-Sep 2014, it appears that the musl library now (as of 2014-09-07) implements the C11 threads interface, though the comparison chart; does not as of this writing reflect this.

    Since this question is re-opened, I moved this content to a proper answer.

    0 讨论(0)
提交回复
热议问题