Daniel Colascione <[email protected]> added the comment:

On Sun, Oct 1, 2017 at 11:14 AM, Antoine Pitrou <[email protected]>
wrote:

>
> Antoine Pitrou <[email protected]> added the comment:
>
> Note that if there is already a C API to perform atomic ops, you can
> simply use ctypes to invoke that API.  Unfortunately, the aforementioned
> GCC builtins seem to be only available as intrinsics (at least I couldn't
> find a shared library that exposes the __atomic_* functions on my system).
>

Right. I performed the same search. On Windows, at least
InterlockedCompareExchange is exported from kernel32.

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31654>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to