Indy 9 | Content | Index | Reference

TIdSynchronizeThreadEvent
See Also, Unit: IdThread
Represents a method pointer for Synchronized method calls.

    TIdSynchronizeThreadEvent = procedure (AThread: TIdThread; AData: Pointer) of object;

Unit
IdThread
Parameters
AData
User-defined values for the Synchronized method call.
AThread
Indy thread for the event notification.
Description
TIdSynchronizeThreadEvent is a method pointer type used when an executing thread needs to be synchronized using the main VCL thread. TIdSynchronizeThreadEvent allows the thread in AThread to synchronize using an internal structure that can contain a reference to the thread, the TNotifyEvent or Thread method to use for executing the Synchronize method, and user-defined data for the method.

TIdSynchronizeThreadEvent is the type used as an argument to the overloaded TIdThread.SynchronizeEx method.

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