[fpc-devel] r45217 breaks Lazarus compile

Sven Barth pascaldragon at googlemail.com
Tue May 5 14:17:44 CEST 2020


Marc Weustink via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am
Di., 5. Mai 2020, 11:21:

> > 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.
>
> Not entirely true on windows. There are 2 ways to name a thread. The
> first is indeed for debugging only since it is passed to the debugger
> though some predefined exception.
> The second is recently introduced by the Get/SetThreadDescription
> functions. The Get function can be used by other (non debugger)
> applications. Some applications already set the description this way.
>

Yes, but we don't provide any cross platform way to retrieve the name in
that case.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200505/c0a319b2/attachment.htm>


More information about the fpc-devel mailing list