[pypy-dev] Question about Atomic_ops.h in STM

Andrew Francis andrewfr_ice at yahoo.com
Mon Jan 30 21:09:46 CET 2012

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120130/7a2dd8dc/attachment-0001.html>

More information about the pypy-dev mailing list