OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 10:38 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: threads.h included in GCC?
PostPosted: Sun Feb 26, 2023 9:16 pm 
Offline
Member
Member

Joined: Tue Sep 13, 2022 9:29 pm
Posts: 61
I was wondering if the file threads.h was included in the GCC compiler because I had seen mixed answers online.


Top
 Profile  
 
 Post subject: Re: threads.h included in GCC?
PostPosted: Sun Feb 26, 2023 10:08 pm 
Offline
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 676
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.

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
 Post subject: Re: threads.h included in GCC?
PostPosted: Wed Mar 01, 2023 4:20 am 
Offline
Member
Member

Joined: Tue Jun 07, 2022 11:23 am
Posts: 78
Location: France
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

_________________
https://github.com/cheyao/Achieve-Core


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], SemrushBot [Bot] and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group