<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, 11:21:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Also debugging *is* the *only* <br>
> purpose of this. Not to mention that this is a write only functionality. <br>
> There is no way to retrieve the thread's name and it's also not stored <br>
> anywhere on the Pascal side.<br>
<br>
Not entirely true on windows. There are 2 ways to name a thread. The <br>
first is indeed for debugging only since it is passed to the debugger <br>
though some predefined exception.<br>
The second is recently introduced by the Get/SetThreadDescription <br>
functions. The Get function can be used by other (non debugger) <br>
applications. Some applications already set the description this way.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, but we don't provide any cross platform way to retrieve the name in that case. </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>