threads.h included in GCC?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
FunnyGuy9796
Member
Member
Posts: 61
Joined: Tue Sep 13, 2022 9:29 pm
Libera.chat IRC: FunnyGuy9796

threads.h included in GCC?

Post by FunnyGuy9796 »

I was wondering if the file threads.h was included in the GCC compiler because I had seen mixed answers online.
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: threads.h included in GCC?

Post by klange »

The compiler-provided headers that come with gcc can be found in the "ginclude" directory: https://github.com/gcc-mirror/gcc/tree/ ... c/ginclude

"threads.h" is not among them.
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

Re: threads.h included in GCC?

Post by Cyao »

klange wrote:The compiler-provided headers that come with gcc can be found in the "ginclude" directory: https://github.com/gcc-mirror/gcc/tree/ ... c/ginclude
Well that directory doesn't include all headers from gcc, the best way to see headers your gcc provides, is to at your gcc toolchain's include folder (for me it's /usr/local/Cellar/x86_64-elf-gcc/12.2.0/lib/gcc/x86_64-elf/12.2.0/include). There is a bunch of other headers (avx512...). But still, "threads.h" is not there
Post Reply