<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
На 25.11.2010 13:14, Sven Barth напісаў(ла):
<blockquote cite="mid:4CEE4523.1040405@googlemail.com" type="cite">Am
25.11.2010 11:08, schrieb Michael Schnell:
<br>
<blockquote type="cite">On 11/25/2010 10:24 AM,
<a class="moz-txt-link-abbreviated" href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a> wrote:
<br>
<blockquote type="cite"><br>
They are threadvars in trunk:
<br>
</blockquote>
<br>
Of course if stdin, stdout, and stderr are not thredvars, their use is
<br>
not thread safe.
<br>
<br>
But if they are threadvars, how are they initialized ? Supposedly the
<br>
main thread instances are initialized as everybody expects and thus
<br>
connected to the appropriate pipes (or whatever this is in Windows).
But
<br>
what are the instances for threads connected to ?
<br>
</blockquote>
<br>
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.
<br>
<br>
Regards,
<br>
Sven
<br>
_______________________________________________
<br>
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>
<br>
</blockquote>
<font face="Helvetica, Arial, sans-serif">So the new question:<br>
What I have to do to properly initialize these defaults for new threads
AFTER capturing StdOut?<br>
<br>
regards,<br>
Anton<br>
<br>
</font>
</body>
</html>