[fpc-pascal]two questions plz help

Florian Klaempfl Florian.Klaempfl at gmx.de
Tue Jan 15 11:46:28 CET 2002

At 20:01 14.01.02 +0100, you wrote:
>Subject: Re: [fpc-pascal]two questions plz help
> > > Well, not me =) Regardless of that, is there still something to do to
> > > get FPC MT safe and basically operational ?
> >
> > Yes, the inoutres variable

Inoures is thread safe, at least in the common code.

>(and under Linux, the errno).
> >
> > I think those are the main obstacles, though any global variable in the
> > system unit can theoretically cause havoc (filemode for example).
>So _if_ I built my own System unit from scratch (taking care of MT-safeness)
>everything would be ok ?

Yes. But this isn't necessary. At least the MT-safeness for Win32 in the
1.1 branch should have beta qualitiy, i.e. everything is implemented but
it needs to be tested more deeply.

For unix/linux, at least rtl/inc/thread.inc needs some
work (no critical sections yet).

>(Sorry for repeating the question, just to be 100%

To enable the MT-safeness, the 1.1 rtl must be compiled with -dMT and
I don't think that this will change in the future, i.e. the
1.1 compilers will come with a single threaded rtl, if you want to
write MT programs you have to recompile the rtl.

More information about the fpc-pascal mailing list