[fpc-devel] StdOut capture for FPC RTL
anton.k at tut.by
Thu Nov 25 12:24:23 CET 2010
?? 25.11.2010 13:14, Sven Barth ???????(??):
> Am 25.11.2010 11:08, schrieb Michael Schnell:
>> On 11/25/2010 10:24 AM, michael.vancanneyt at 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.
> fpc-devel maillist - fpc-devel at lists.freepascal.org
So the new question:
What I have to do to properly initialize these defaults for new threads
AFTER capturing StdOut?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel