Indy 9
|
function IsCurrentThread(AThread: TThread): boolean;
IsCurrentThread isolates the Indy developer for the platform-specific calls needed to identify the current thread of execution in the application. For WIN32, this call is GetCurrentThreadID.
IsCurrentThread compares the ThreadID for AThread to the value returned by GetCurrentThreadID to determine its return value.
IsCurrentThread is used by TIdThreadMgr descendants, TIdThreadMgrDefault and TIdThreadMgrPool, to implement ReleaseThread functionality.