[fpc-devel] volatile variables

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jun 30 16:32:09 CEST 2011

On 30 Jun 2011, at 14:26, Michael Schnell wrote:

> On 06/30/2011 11:52 AM, Jonas Maebe wrote:
>> On 30 Jun 2011, at 10:38, Michael Schnell wrote:
>>> But e.g. if you use a TThreadList instance "myList" with multiple  
>>> threads it can't be the way to go to include any occurrence of  
>>> myList.xxx by a critical section just to make sure that the cache  
>>> synchronization has happened and the instance variable itself in  
>>> fact is valid.
>> That's where optimization comes in,
> Very wrong assumption.

I simply misunderstood you (I thought you meant that there should be a  
solution to avoid having to use critical sections around all accesses  
to fields that may be accessed from multiple threads).

However, what is a wrong assumption on your part is that when I  
replied to fpc-other with you in CC, explicitly mentioning "moved to  
fpc-other because unrelated to developing FPC", that it's ok to reply  
back to fpc-devel (moreover removing that remark in the process).

This thread has gone off topic for long enough now on this list, and  
further posts on this topic to this list will be rejected.

FPC mailing lists admin

More information about the fpc-devel mailing list