[fpc-pascal] Context of TThread.OnTerminate
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Thu Feb 24 16:51:31 CET 2011
On Thu, 24 Feb 2011, Wimpie Nortje wrote:
> Hi everybody,
>
> The manual (possibly Delphi one) says that TThread.OnTerminate executes
> in the GUI thread. This is easy if the GUI thread owns the TThread.
>
> Suppose the GUI owns a TTHread which owns a subthread. In which context
> does the subthread's OnTerminate execute?
Always the main thread; no matter in which thread a thread was started.
There simply is no information about which thread has started another particular thread.
Michael.
More information about the fpc-pascal
mailing list