fenv not inherited from parent thread
fenv not inherited from parent thread
- Subject: fenv not inherited from parent thread
- From: Niv Drory <email@hidden>
- Date: Thu, 10 Jul 2014 20:20:25 -0500
Hi,
I'm trying to enable delivery of SIGFPE on floating point exceptions, which I'm able to do by manipulating the fenv, however the effect seems to be restricted to the current thread. According to
http://en.cppreference.com/w/c/numeric/fenv
and verified on Linux, the fenv is inherited from the parent thread. It appears that that is not the case on MacOS X (Mavericks 10.9). Is there a way to have threads inherit their parent's fenv? Am I just missing something obvious?
Thanks,
Niv
-- Niv Drory --
McDonald Observatory / Dept. of Astronomy
The University of Texas at Austin
Tel: +1 (512) 471 6197
http://www.as.utexas.edu/~drory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden