SynchronizeEx is an overloaded procedure in
TIdThread that implements extensions to the Synchronize method. SynchronizeEx allows a thread to be synchronized to the main VCL thread using a TNotifyEvent method pointer, a thread method pointer, or a method pointer and optional data for the synchronized method call.