[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Wed Jun 29 17:00:17 CEST 2011

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").


More information about the Lazarus mailing list