Indy 9
Synchronize
Executes a method in the main VCL thread.
Description
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.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.