On 06/28/2011 01:41 AM, Andrew Brunner wrote:
2011/6/27 Malcom Haak<[email protected]>:
In fact in cases
this this the use of CriticalSections would be sensible and
Thread 1:
...
This is relatively new theory which required low-level CPU code to
perform such locks. This was never needed until the introduction of
multi-core systems. Of which I did extensive tests on AMD via
FPC/Lazarus.
We are discussing here if a critical would offer data integrity with
threads or not (without additionally using low level CPU code). Your
example does not say anything about this.
Of course we all know that in certain cases there are better performing
option than critical sections (using low level code). But this is not to
be discussed right now.
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus