Marc Weustink via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am Di., 5. Mai 2020, 09:27:
> Sven Barth via fpc-devel wrote: > > > > TThread.NameThreadForDebugging is implemented for Windows, Linux and > > Android since the weekend. > > Just curious, why is NameThreadForDebugging used instead of simply > TThread.Name ? > > ForDebugging is just one of the purposes, and TThread.NameThread is > double, since it is a property of a thread, what else would you give a > name. > 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. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel