| View previous topic :: View next topic |
| Author |
Message |
Bart van der Werf Guest
|
Posted: Sun Dec 24, 2006 6:21 pm Post subject: memory fence instruction |
|
|
what instructions can be used to force a memory fence ? |
|
| Back to top |
|
 |
Bart van der Werf Guest
|
Posted: Mon Dec 25, 2006 6:46 pm Post subject: Re: memory fence instruction |
|
|
"Bart van der Werf" <bluelive (AT) xs4all (DOT) nl> schreef in bericht
news:458e70c8$1 (AT) newsgroups (DOT) borland.com...
| Quote: | what instructions can be used to force a memory fence ?
|
I guess this should work:
procedure MemoryBarrier; assembler;
asm
lock xor [esp], 0
end;
delphi won't reorder code if it can't inline ? |
|
| Back to top |
|
 |
Dennis Guest
|
Posted: Wed Dec 27, 2006 11:32 pm Post subject: Re: memory fence instruction |
|
|
Hi Bart
SFENCE/LFENCE ?
Best regards
Dennis Kjaer Christensen |
|
| Back to top |
|
 |
|