[Lazarus] Synchronize problem in linux

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed May 25 13:45:40 CEST 2011



On Wed, 25 May 2011, Vincent Snijders wrote:

> 2011/5/25  <michael.vancanneyt at wisa.be>:
>>>> No. You should use a TMultiReadExclusiveWriteSynchronizer object to
>>>> synchronize access to your object, or use a critical section.
>>>
>>> Ehm, he made sure that only one thread accesses the TStringList at a
>>> time.
>>
>> To me, this is not obvious from his mail ?
>
> I thought it was obvious from:
> "The logic of the application itself made it sure that there was no
> conflict whatsoever. "
>
> But maybe that was not not what Giuliano meant by "no conflict".

This is what was not clear to me...

If no conflict can mean 'it adds only', then there is a conflict at a lower
level, because adding can mean a reallocation of the array of strings.

Michael.




More information about the Lazarus mailing list