Indy 9
|
function InMainThread: boolean;
InMainThread isolates the Indy developer for the platform-specific calls needed to identify the current thread and the application main thread. For WIN32, these calls are GetCurrentThreadID and MainThreadID.
InMainThread is used by TIdAntiFreeze to implement DoProcess functionality.