<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Marc Weustink via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Di., 5. Mai 2020, 09:27:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sven Barth via fpc-devel wrote:<br>
> <br>
> TThread.NameThreadForDebugging is implemented for Windows, Linux and <br>
> Android since the weekend.<br>
<br>
Just curious, why is NameThreadForDebugging used instead of simply <br>
TThread.Name ?<br>
<br>
ForDebugging is just one of the purposes, and TThread.NameThread is <br>
double, since it is a property of a thread, what else would you give a name.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">As Marco said, Delphi compatibility. Also debugging *is* the *only* purpose of this. Not to mention that this is a write only functionality. There is no way to retrieve the thread's name and it's also not stored anywhere on the Pascal side. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>