Vcl.Forms.TApplication.UnhookSynchronizeWakeup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UnhookSynchronizeWakeup;

C++

void __fastcall UnhookSynchronizeWakeup();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

Removes the method that was assigned to the WakeMainThread variable by HookSynchronizeWakeup.

Applications rarely, if ever, call UnhookSynchronizeWakeup directly. UnhookSynchronizeWakeup is called from the TApplication destructor. It resets the WakeMainThread variable to nil (Delphi) or NULL (C++) if that variable was set by the HookSynchronizeWakeup method.

Warning: You should not modify WakeMainThread for GUI applications because a working handler has been assigned. Console applications may assign a handler to WakeMainThread if the application needs to be notified of a thread synchronization call. If your console application assigns a handler, this is an optimization that only accelerates deliver of notification that a synchronization request is available. You must use CheckSynchronize to perform the synchronization itself.

See Also