public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* enable/disable threads when installing gcc
@ 2002-04-03  3:13 Long Li
  0 siblings, 0 replies; 2+ messages in thread
From: Long Li @ 2002-04-03  3:13 UTC (permalink / raw)
  To: gcc-help

Hi, Guys,

I have just installed GCC 3.0 on my redhat 7.2 Linux
machine. During the configuration of GCC, I found the
option --enable-threads was turned off, which means, I
guess, the GCC 3.0 on my machine does not support
thread. However, when I include the pthread.h file and
use the GCC 3.0 to compile, it worked and the result
showed me some threads switching cases. So what does
the --enable-threads option do? Does it really turn
off the thread or just a default case, and you can
overwrite it when compling?


Thanks a lot!


Long

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: enable/disable threads when installing gcc
       [not found] <616BE6A276E3714788D2AC35C40CD18D590FAE@whale.softwire.co.uk>
@ 2002-04-03  7:11 ` Rupert Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Rupert Wood @ 2002-04-03  7:11 UTC (permalink / raw)
  To: 'Long Li'; +Cc: gcc-help

Long Li wrote:

> So what does the --enable-threads option do?

It specifies which threading model should be used by the threading
abstraction in <bits/gthr.h>. This is used by the C++ and objective C
runtime libraries, the STL implementation and the libgcc exception
handling mechanism. Hence you may run into thread safety problems if you
use threads in C++ or Objective C.

I'm not sure if <bits/gthr.h> is intended for general use - I don't
think it's documented in the manual.

Rup.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-03 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03  3:13 enable/disable threads when installing gcc Long Li
     [not found] <616BE6A276E3714788D2AC35C40CD18D590FAE@whale.softwire.co.uk>
2002-04-03  7:11 ` Rupert Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).