Hi Jérôme,
Cython has no built-in support for atomics(*), but you can easily access
the C++ standard library support
(
https://en.cppreference.com/w/cpp/atomic/atomic, exposed in Cython in
https://github.com/cython/cython/blob/master/Cython/Includes/libcpp/atomic.pxd).
That's widely supported by all major compilers on all major platforms.
C also has standard library support for atomics. Unfortunately:
* MSVC doesn't support them at all,
* We haven't wrapped it ourselves as a convenient cimport - (it should
be pretty simple though, so there's no reason you couldn't do it yourself).
So I recommend using the C++ standard library.
David
* sort of... there's one or two places we use them internally, but not
in a way that's exposed to users.