Internet Direct (Indy) Version 9.0.1 Beta
TIdSyncMethod
Extends the mechanism for thread-based notification and synchronize method calls for thread methods.

TIdSyncMethod = class(TIdSync)
Description
TIdSyncMethod is a TIdSync descendant that extends the Synchronized methods calls and notification messages in the ancestor class to use thread methods.

TIdSyncMethod implements the abstract virtual DoSynchronize method from the ancestor class, and provides Method to represent the thread method to be used in Notify and Synchronize method calls.

An instance of TIdSyncMethod is used when TIdThread calls Notify or Synchronize using a ThreadMethod, 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.