Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-01

BE: Re: two questions plz help

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
Show quoted text 6 lines
> > 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)

Reply by email

Pierre Muller

At 09:38 15/01/2002 , vous avez écrit:

Show quoted text 8 lines
>> >> 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.

Reply by email