2011/6/27 Michael Schnell <[email protected]>: > This is clear. You also would have been able to avoid the problem by using > critical sections around all the appropriate instructions, but supposedly > this would have slowed done the application greatly. >
I disagree. In my experience critical sections only employ a spin-count per entrance into the block. TCriticalSection is a particialar method to ensure a code block is only accessed by one thread at a time. I strongly believe it does not ensure a "core stay" during execution. See the link at wikipedia. It clearly explains the issue of multi-core situations. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
