tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 2*(void *) atomic swap?



> On Jul 30, 2015, at 12:11 PM, Dennis Ferguson <dennis.c.ferguson%gmail.com@localhost> wrote:
> 
> I know arm does double word ll/sc, but what else does?
> I don't know of a way to use single register ll/sc to do an
> atomic swap of two pointers.

Not many.  running 32-bit on 64-bit CPUs.

You can do an atomic swap of a pointer to two pointers.
Ya, indirection.


Home | Main Index | Thread Index | Old Index