
Hi Folks: I noticed a compare_and_swap function in atomic_ops.h. On the IRC channel, it was suggested that I look in _rffi_stm.py. However it is not there (I can understand thta). How can this function be exposed to a RPython programme? The reason I am asking is if compare and swap functions are available, it ought to be possible to write stuff like a lock-free list. Also this give me a chance to learn more about RPython. Cheers, Andrew

Hi Andrew, On Mon, Jan 30, 2012 at 21:09, Andrew Francis <andrewfr_ice@yahoo.com> wrote:
Indeed, compare_and_swap() is not exposed to RPython. We don't need it, because it's only called from "et.c", another C source. RPython has no similar atomic operations so far. Armin

Hi Andrew, On Mon, Jan 30, 2012 at 21:09, Andrew Francis <andrewfr_ice@yahoo.com> wrote:
Indeed, compare_and_swap() is not exposed to RPython. We don't need it, because it's only called from "et.c", another C source. RPython has no similar atomic operations so far. Armin
participants (2)
-
Andrew Francis
-
Armin Rigo