Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2004-07-22 11:03:37


On Thu, Jul 22, 2004 at 11:19:01AM -0400, David Abrahams wrote:

> Christoph Ludwig <cludwig_at_[hidden]> writes:
>
> > On Thu, Jul 22, 2004 at 01:08:29PM +0200, Martin Wille wrote:
> > [...]
> >> This problem should be obvious to everyone who installs gcc-3.4.1,
> >> since you have to select how the standard library will be compiled.
>
> I just installed it on two machines by building it from source and
> didn't need to make any such explicit selection. I wonder what I
> ended up with by default?

As I said, I build GCC from source very frequently, with various
non-default configurations, but have never changed the thread model from
the default.

You can find out which model was used from the output of "gcc -v".
It should include a line saying "Thread model: xxx"

The choices if you *do* make an explicit choice, are here:
http://gcc.gnu.org/install/configure.html
Not all thread models work on all targets.

Martin's mail was misleading, a library with posix thread model supports
both multithreaded code using pthreads, and single-threaded code. (If
that wasn't the case there'd be no problem in the first place).

Seems like there are a lot of misunderstandings surrounding this issue.
Would it help if I summarised the problem, what's being done, and the
workaround?

jon

-- 
Rules of Optimization:
Rule 1: Don't do it.
Rule 2 (for experts only): Don't do it yet.
	- M.A. Jackson

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk