- About volatile attribute.. - 1 Update
aminer68@gmail.com: Jan 18 09:30AM -0800 Hello, About volatile attribute.. I have just read the following about volatile from Barry Kelly: "Specifically, volatile prevents the compiler from changing the number of reads or writes to or from a location from the number that are explicitly indicated in the source. That doesn't mean that the reads or writes to volatile locations will act as memory barriers. To my knowledge, current implementations of Win32 Delphi never change the number or order of reads or writes to global variables or fields of objects." Read more here: http://borland.newsgroups.archived.at/public.delphi.language.delphi.win32/200606/0606232337.html So i think the old Delphi compilers that don't support volatile never change the number or order of reads or writes to global variables or fields of objects, and i think since Freepascal in the Delphi mode is compatible with the old Delphi compilers that don't support volatile, so then Freepascal in the Delphi mode never change the number or order of reads or writes to global variables or fields of objects. Thank you, Amine Moulay Ramdane. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com. |
No comments:
Post a Comment