[Lazarus] Function call from thread

SteveG steveg at nevets.com.au
Fri Oct 16 16:20:11 CEST 2009


On Saturday 17 October 2009 00:06:27 Vincent Snijders wrote:
> SteveG schreef:
> > Would anybody know if it is possible to tell if a function has been
> > called from the Main (GUI) thread, or a 'child' thread ?
> > (determined within the function being called)
>
> Yes, that is possible. Compare GetCurrentThreadID with MainThreadID.
>
> Vincent

Excellent - Thanks Vincent




More information about the Lazarus mailing list