[fpc-devel] function GetCurrentThreadId vs variable ThreadID

Alexander Grotewohl alex at dcclost.com
Sun Mar 28 21:46:29 CEST 2021


looks like threadid is assigned to getcurrentthreadid in an initthread() function in thread.inc.

but: getcurrentthreadid looks to be mapped to a changeable thread manager which is why that might seem weird in the docs..

--
Alexander Grotewohl
https://dcclost.com

________________________________
From: fpc-devel <fpc-devel-bounces at lists.freepascal.org> on behalf of Martin via fpc-devel <fpc-devel at lists.freepascal.org>
Sent: Sunday, March 28, 2021, 3:35 PM
To: fpc-devel
Cc: Martin
Subject: [fpc-devel] function GetCurrentThreadId vs variable ThreadID

I looked at the doc
https://www.freepascal.org/docs-html/rtl/system/getcurrentthreadid.html
https://www.freepascal.org/docs-html/rtl/system/threadid.html

But the entry for ThreadId only says "Current Thread ID."
Which is not distinguishing it from GetCurrentThreadId.

So what is the difference?

_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

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


More information about the fpc-devel mailing list