[fpc-devel]BE: Re: [fpc-pascal]two questions plz help

Pierre Muller pierre at freepascal.org
Tue Jan 15 09:46:46 CET 2002


At 09:38 15/01/2002 , vous avez écrit:
> >> 
> >> So _if_ I built my own System unit from scratch (taking care of MT-safeness)
> >> everything would be ok ? (Sorry for repeating the question, just to be 100%
> >> sure....)
>
> >Yes, I think so, maybe except FPU code.
>I did not positively verify that, but my code uses fpu in an MT application. It´s running 24h/day on 5 or 6 machines and I never
>got a FPU related problem (Linux OS, 80486 and Pentium machines)

FPU registers are all saved when you change a thread
(at least under linux and windows), so
as long as there are no global nor static variables used for 
computing RTL functions (and I don't think there are)
FPU should be thread-safe right away.





More information about the fpc-devel mailing list