> 4 byte atomic write

> 4 byte atomic write

Postby Guest » Mon Sep 11, 2006 7:25 pm

Is it possible to write more than 4 bytes atomically?
Guest
 

Postby VDO » Mon Sep 11, 2006 7:28 pm

mem qword 0

LOCK CMPXCH8B [mem]

if (edx:eax == dest)
{
zf = 1
dest = ecx:ebx
}
else
{
zf = 0
edx:eax = dest
}
VDO
Site Admin
 
Posts: 507
Joined: Mon May 01, 2006 10:34 am
Location: Dublin, Ireland


Return to 32-bit

Who is online

Users browsing this forum: No registered users and 1 guest

cron