[fpc-devel] volatile variables
Michael Schnell
mschnell at lumino.de
Tue Jun 28 16:43:19 CEST 2011
On 06/28/2011 04:31 PM, Andrew Brunner wrote:
> how developers
> can force code execution in order w/o using a third party library?
Execution in order only makes sense when there is another thread that
relies on this order.
So if both threads use the same critical section for accessing all
variables that an ordering is necessary with, the actual ordering used
completely within the critical section in fact is irrelevant as no other
thread can get in the way at that point. So the high level Posix
interface that is provided as TCriticalSection in the RTL/LCL should be
workable (but not high performance).
-Michael
More information about the fpc-devel
mailing list