<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
looks like threadid is assigned to getcurrentthreadid in an initthread() function in thread.inc.</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
<br>
</div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
but: getcurrentthreadid looks to be mapped to a changeable thread manager which is why that might seem weird in the docs..</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<div id="id-d47104d0-f735-46d7-a41c-2b2bd1273ed8" class="ms-outlook-mobile-reference-message">
<div style="font-family: sans-serif; font-size: 13.2pt; color: rgb(0, 0, 0);"><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg"><strong>From:</strong> fpc-devel <fpc-devel-bounces@lists.freepascal.org> on behalf of Martin via fpc-devel <fpc-devel@lists.freepascal.org><br>
<strong>Sent:</strong> Sunday, March 28, 2021, 3:35 PM<br>
<strong>To:</strong> fpc-devel<br>
<strong>Cc:</strong> Martin<br>
<strong>Subject:</strong> [fpc-devel] function GetCurrentThreadId vs variable ThreadID<br>
</div>
<br>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I looked at the doc<br>
<a href="https://www.freepascal.org/docs-html/rtl/system/getcurrentthreadid.html">https://www.freepascal.org/docs-html/rtl/system/getcurrentthreadid.html</a><br>
<a href="https://www.freepascal.org/docs-html/rtl/system/threadid.html">https://www.freepascal.org/docs-html/rtl/system/threadid.html</a><br>
<br>
But the entry for ThreadId only says "Current Thread ID."<br>
Which is not distinguishing it from GetCurrentThreadId.<br>
<br>
So what is the difference?<br>
<br>
_______________________________________________<br>
fpc-devel maillist  -  fpc-devel@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</div>
</span></font><br>
</div>
</body>
</html>