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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to