
28 Mar
2007
28 Mar
'07
5:45 p.m.
james.jones@firstinvestors.com wrote:
I'm not sure about this, actually - but do the fe* functions guarantee thread safety? I read over Sun's documentation and it says they do, but can this generally be assumed? N2198 specifies that cfenv be used for context, and this is where I got concerned.
Good question: there are no threads as far as C99 is concerned so it doesn't say. Since these functions basically just return the state of the underlying hardware, I guess they are as thread safe as the hardware is? A casual glance at the POSIX spec doesn't seem to help either... Regards, John.