Page 1 of 1

> 4 byte atomic write

PostPosted: Mon Sep 11, 2006 7:25 pm
by Guest
Is it possible to write more than 4 bytes atomically?

PostPosted: Mon Sep 11, 2006 7:28 pm
by VDO
mem qword 0

LOCK CMPXCH8B [mem]

if (edx:eax == dest)
{
zf = 1
dest = ecx:ebx
}
else
{
zf = 0
edx:eax = dest
}