[fpc-pascal] Thread Safety of String
md at rpzdesign.com
md at rpzdesign.com
Wed Jun 4 19:19:33 CEST 2014
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, md at rpzdesign.com wrote:
>
>> Hello:
>>
>> Is a string[30] declaration under Linux thread safe?
>
> No.
>
> Michael.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list