Internet Direct (Indy) Version 9.0.1 Beta
TIdSync
Specifies a mechanism for thread-based notification messages and synchronize method calls.

TIdSync = class(TObject)
Description
TIdSync is a TObject descendant that implements support for abstract Synchronized methods calls that have parameters and/or return values. TIdSync also provides methods that support thread-based notification messages to reduce overhead in server applications.

TIdSync is used to act in behalf of the Indy thread instance specified in Thread, and also insures that at least a single instance of the Thread class has been created in the application.

An instance of TIdSync is used when TIdThread calls Notify, and is added to the global thread-based notifcation mechanism in GNotifyThread. GNotifyThread is used instead of PostMessage because of changes to the Synchronize method calls in Delphi 6 and Kylix, and also provides a low overhead notification mechanism for server applications.