TThread.Synchronize

Synchronizes the thread by executing the method in the main thread.

Declaration

Source position: classesh.inc line 1912

protected 
  procedure Synchronize(AMethod: TThreadMethod);
  class procedure Synchronize(AThread: TThread; AMethod: TThreadMethod);