[Lazarus] Thread safe

Mattias Gaertner nc-gaertnma at netcologne.de
Sat May 30 09:09:41 CEST 2009


On Sat, 30 May 2009 12:55:14 +1000
SteveG <steveg at nevets.com.au> wrote:

> Would appreciate anybody clearing this up for me - 
> 
> If I use a TTimer on a GUI form to call a function, is the function
> within the Main thread at all times (therefore gui threadsafe) ?

yes

 
> If the above function then calls a function within a library, is the
> call still within the main thread (still safe) ?

Yes.
Unless the library starts another thread.

 
> and as a completely non-related question, does fpc/laz have a cross 
> platform 'shared memory' component/function at the moment ?

Shared between what? Processes, libraries, computers?

Mattias




More information about the Lazarus mailing list