procedure Synchronize(Method: TThreadMethod);
TThreadMethod VCL method to be executed.
Synchronize is used to avoid multi-threading conflicts that can arise from accessing object properties or methods that are not thread-safe, or using resources not in the main thread of execution.
Execution of the thread is suspended while Synchronize completes the call to Method.
Note: Methods can also be protected using critical sections or the multi-read exclusive-write synchronizer.
Note: Synchronize is redeclared as a public method in TIdThread.