Am 25.11.2010 11:08, schrieb Michael Schnell:
On 11/25/2010 10:24 AM, michael.vancann...@wisa.be wrote:
They are threadvars in trunk:
Of course if stdin, stdout, and stderr are not thredvars, their use is
not thread safe.
But if they are threadvars, how are they initialized ? Supposedly the
main thread instances are initialized as everybody expects and thus
connected to the appropriate pipes (or whatever this is in Windows). But
what are the instances for threads connected to ?
They are initialised when the thread is started (before your own routine
is called) to the same values that are used for StdIO on application
startup.
Regards,
Sven
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel