[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Tue Jun 28 11:14:15 CEST 2011


On 06/28/2011 10:48 AM, Michael Schnell wrote:
> ...
I forgot to mention that the variables a and b need to be defined as 
volatile (mentioning this C-keyword) and thus need to be global/static 
which makes Pascal to handle them as volatile (not cashing them in CPU 
registers). I don't know if/how it in Pascal is possible to define 
stack-variables to be handled as volatile.

-Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110628/db9fc08f/attachment-0003.html>


More information about the Lazarus mailing list