On 06/28/2011 08:59 PM, Hans-Peter Diettrich wrote:
sounds nice, but it does not hinder any other code to do something
with the same variables, at the same time, *without* entering the CS.
Of course a CS only makes sense if all code accessing the data in
question is done using the same CS. So "without" is absolutely
forbidden. (Of course in fact a TCriticalSection instance is used to
protect a group of "critical code sequences").
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus