> The problem is that when we discussed this patch on ODP call people very
> worry about having 128bit instructions in ODP examples. At least Petri
> and Barry asked if it would be possible to rewrite that with 64 bit
> instructions? Some compilers might not support 128 bits and we need to
> test it more.

On 32-bit platforms, it already does use 64-bit atomics. In general, though,
the example hinges around having atomics that are twice the pointer size.
We've actually discussed this on the list already in the thread "32-bit
support in examples". Even if lock-free implementations can't be used,
compilers can (and frequently do?) provide a lock-based compare exchange
operation.

Reply via email to