
4 Apr
2012
4 Apr
'12
9:29 p.m.
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.