[Lazarus] Weird object variables access - fpc issue?

el es el.es.cr at gmail.com
Tue Oct 24 14:21:55 CEST 2017


On 24/10/17 12:59, Mattias Gaertner via Lazarus wrote:

> ASystemTime is a stack variable. That's thread-safe.
> 
> In fpc trunk it calls GetLocalTime on Unix, which fetches timezone
> every time. No global var. So it should be thread safe.
> 
>> because each thread instance would have its own local variables, right?
>> so no thread would step on each others' toes;
> 
> You have to check called code too.
> 
> Mattias
> 

On 24/10/17 13:06, Sven Barth via Lazarus wrote:
> 
> ASystemTime is a local variable, so two threads won't influence each other there thus at least on Windows Now() is threadsafe. 
> 
> Regards, 
> Sven
> 
> 


MMMmmm... 

i can't exactly now but I will try to reproduce what I was seeing ...

for now sorry for the noise...

el es



More information about the Lazarus mailing list