Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TThreadExecuteStatusHandler

Signature of method to execute in a thread, with status reporting.

Declaration

Source position: classesh.inc line 1892

type TThreadExecuteStatusHandler = procedure(

  ReportStatus: TThreadReportStatus

) of object;

Description

TThreadExecuteStatusHandler is the signature of the method to be used when executing something in a thread using TThread.ExecuteInThread when status reporting is required.

On entry in the method, ReportStatus is passed to the method, and the method can call ReportStatus at various stages to report about the status of the method: The status will be reported to the main thread using TThread.synchronize, and calls ReportStatus will be blocked as long as the status was not reported.

See also

TThread.ExecuteInThread

  

Execute a method or static procedure in a thread.

TThreadReportStatus

  

Thread status report callback prototype.

TThreadStatusNotifyEvent

  

Signature of thread status report event handler.


Documentation generated on: Jul 24 2023