[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Mon Jun 27 12:19:44 CEST 2011


On 06/27/2011 11:37 AM, Martin wrote:
>
> If the function, for example stores some important data in a thread 
> local variable, but flags (thread global) the availability of the 
> data, then no Critical section will fix it.
>
Yep !

As stated in my former messages in this thread, IMHO, the "official" 
definition of thread-safe-ness does not make much sense with objects, 
but a more complex definition covering several cases of use is necessary.

-Michael




More information about the Lazarus mailing list