[fpc-pascal] Thread Safety of String

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 5 09:42:43 CEST 2014


On Thu, 05 Jun 2014 09:37:57 +0200
Michael Schnell <mschnell at lumino.de> wrote:

> On 06/04/2014 08:04 PM, johanns at nacs.net wrote:
> >  I would expect shortstring might be thread safe.
> Only a simple write (not a modification) of processor-native types is 
> inherently atomic and thus really thread save.

No. See for example
http://en.wikipedia.org/wiki/Memory_barrier

Mattias



More information about the fpc-pascal mailing list