Topic Path: Pending > TIdThread.Synchronize@TThreadMethod
ContentsIndexHome
PreviousUpNext
TIdThread.Synchronize@TThreadMethod

Executes a method in the main VCL thread.

Parameters 
Description 
Method 
Method to be executed. 

Synchronize is a method 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 specified in Method. 

Methods can also be protected using critical sections or the multi-read exclusive-write synchronizer as an alternative to calling Synchronize.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.