[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

WakeMainThread

Handler which is called if a thread wants to synchronize with the main application thread.

Declaration

Source position: classesh.inc line 1871

var WakeMainThread: TNotifyEvent = nil;

Description

WakeMainThread is called by the TThread.synchronize call. It should alert the main program thread that a thread is waiting for synchronization. The call is executed by the thread, and should therefore NOT synchronize the thread, but should somehow signal the main thread that a thread is waiting for synchronization. For example, by sending a message.

See also

CheckSynchronize

  

Check whether there are any synchronize calls in the synchronize queue.

TThread.synchronize

  

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.