Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

Function call from thread

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

SteveG

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)

Thanks

Reply by email

Vincent Snijders
to SteveG
SteveG wrote
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

Reply by email

SteveG
to Vincent Snijders
Vincent Snijders wrote 8 lines
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

Reply by email