[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Signature of thread status report callback
Source position: classesh.inc line 1582
type TThreadStatusNotifyCallBack = procedure( |
Sender: TThread; |
AData: Pointer; |
const status: string |
); |
TThreadStatusNotifyCallBack is the signature of the callback to be provided when executing a static procedure in a thread using TThread.ExecuteInThread when status reporting is required.
This callback will be called in the main thread. When called, it has the thread whose status is reported in Sender, AData is the AData parameter passed to TThread.ExecuteInThread. Finally, the status message in ReportStatus is passed to the callback.
Note that the thread reporting its status is blocked while the callback is being handled: The status is be reported to the main thread using TThread.synchronize.
|
Execute a method or static procedure in a thread |
|
|
Thread status report callback prototype |
|
|
Signature of method to execute in a thread, with status reporting |