Internet Direct (Indy)
Home
PreviousUpNext
CurrentThreadId Function

Determines the process identifier for the current thread of execution in the application.

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.