Boost logo

Boost :

Subject: Re: [boost] [Review Request] Multiprecision Arithmetic Library
From: Christopher Kormanyos (e_float_at_[hidden])
Date: 2012-04-04 17:29:29


>>The constants are initialized prior to the start of main - so they're thread safe as long as only one thread executes prior to main.

> I have struggled with this issue before. Maybe you
> help me out.

<snip>
> The is_initialized flag (which is actually a kind of manual "guard-variable")
> should be set to true *after* initializing the representartion of pi.

Ahhhh! But you got it right. Excellent.
You initialize "b" after initializing the representation
of pi, ln2, etc.

I think that's looking OK for threads.
Sorry for the chatter...

Best regards, Chris.


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