On 06/01/19 15:30, Martin Frb wrote:
Out of interest...
What about TRTLCriticalSection?
If a variable is shared between 2 threads, and only accessed within a
TRTLCriticalSection?
From the mail you replied to:
***
In general: always use an RTLEvent, mutex, *critical section* or similar
to access shared data. Those will ensure that the necessary memory
barriers get inserted.
***
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel