Determines the process identifier for the current thread of execution in the application.
function CurrentThreadId: TIdPID;
TIdPID - Process identifier for the current thread of execution.
CurrentThreadId is a TIdPID function used to access the process that is the current thread of execution in the application. CurrentThreadId isolates the platform-specific calls required to determine the return value for the function.
On the .Net platform, CurrentThreadId calls the AppDomain.GetCurrentThreadId framework method to retrieve the current thead.
For all other platforms, CurrentThreadId uses the value from GetCurrentThreadID as the current thread.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|