[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Tue Jun 14 14:02:06 CEST 2011


> Everything is "separate-instance-thread safe".  How can something be 
> unsafe if only one thread is accessing it?
As soon as you use global variables. E.G. "Application" uses global 
variables, as well internally, as implicitly by doing calls to an 
external Widget set. That is why the LCL is known to be "not thread safe".

>
>> TThreadList.Add is not "cross-instance-thread safe" (multiple threads
>> using the same instance's "Add" procedure will result in erroneous
>> behavior).
>
> No, it won't. 
Right you are. I meant to write TList". Sorry.

-Michael





More information about the Lazarus mailing list