Just as I suspected.

So every time a new value is assigned to a string[30] variable, memory
is allocated and changed by the compiler, so the internal string pointer
changes as well.

And the only recourse is critical sections for memory access.

Correct?

CHeers,

marco


On 6/4/2014 1:16 PM, Michael Van Canneyt wrote:
> 
> 
> On Wed, 4 Jun 2014, m...@rpzdesign.com wrote:
> 
>> Hello:
>>
>> Is a string[30] declaration under Linux thread safe?
> 
> No.
> 
> Michael.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to